You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure documentation has consistent relative links
Summary:
Explain the **motivation** for making this change. What existing problem does the pull request solve?
I had tried fixing a broken link in a previous commit (facebook#11453). My commit was merged, but it did not resolve the underlying problem. I have looked into how links should be formed for the docs and have fixed the original problem as well as updated all other links to be consistent.
Previous link formats:
- /docs/sample.html <-- broken link
- sample.html <-- broken link
- https://facebook.github.io/react-native/docs/sample.html <-- works
- /react-native/docs/sample.html <-- works
- docs/sample.html <-- works (permalink format)
This PR updates all links to the permalink format.
**Test plan (required)**
I ran the website locally and manually tested half of the links in each category. They all worked.
```
$ cd website
$ npm install && npm start
```
Closesfacebook#12064
Differential Revision: D4489153
Pulled By: mkonicek
fbshipit-source-id: bf0231d941ba147317595c3b3466dc579a887169
* If this button doesn't look right for your app, you can build your own
32
-
* button using [TouchableOpacity](https://facebook.github.io/react-native/docs/touchableopacity.html)
33
-
* or [TouchableNativeFeedback](https://facebook.github.io/react-native/docs/touchablenativefeedback.html).
32
+
* button using [TouchableOpacity](docs/touchableopacity.html)
33
+
* or [TouchableNativeFeedback](docs/touchablenativefeedback.html).
34
34
* For inspiration, look at the [source code for this button component](https://github.com/facebook/react-native/blob/master/Libraries/Components/Button.js).
35
35
* Or, take a look at the [wide variety of button components built by the community](https://js.coach/react-native?search=button).
Copy file name to clipboardExpand all lines: docs/AndroidBuildingFromSource.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -144,7 +144,7 @@ gradle.projectsLoaded {
144
144
145
145
## Testing
146
146
147
-
If you made changes to React Native and submit a pull request, all tests will run on your pull request automatically. To run the tests locally, see [Testing](/react-native/docs/testing.html).
147
+
If you made changes to React Native and submit a pull request, all tests will run on your pull request automatically. To run the tests locally, see [Testing](docs/testing.html).
Copy file name to clipboardExpand all lines: docs/GettingStarted.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ next: tutorial
10
10
Welcome to React Native! This page will help you install React Native on
11
11
your system, so that you can build apps with it right away. If you already
12
12
have React Native installed, you can skip ahead to the
13
-
[Tutorial](/react-native/docs/tutorial.html).
13
+
[Tutorial](docs/tutorial.html).
14
14
15
15
The instructions are a bit different depending on your development operating system, and whether you want to start developing for iOS or Android. If you
16
16
want to develop for both iOS and Android, that's fine - you just have to pick
0 commit comments