Browse Source

[Docs] Fix invalid links (#6217)

* [Docs] Fix invalid links

```sh
# to test run

npx broken-link-checker "https://wix.github.io/react-native-navigation/docs/before-you-start" -ro
```

* Update docs-playground-app.mdx

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
David Narbutovich 4 years ago
parent
commit
9939b2d99b
No account linked to committer's email address

+ 3
- 3
website/api/options-stack.mdx View File

@@ -124,9 +124,9 @@ Indicates whether the navigation bar should be hidden when searching. True by de
124 124
 
125 125
 ### `leftButtons`
126 126
 
127
-An array of buttons to be displayed at the right-side of the TopBar. Button layout is from left to right. See the [Buttons](button-options) section for more details.
127
+An array of buttons to be displayed at the right-side of the TopBar. Button layout is from left to right. See the [Buttons](options-button) section for more details.
128 128
 
129
-:::info Android support 
129
+:::info Android support
130 130
 Android currently only supports a single left button and does not support custom left Buttons.
131 131
 :::
132 132
 
@@ -153,7 +153,7 @@ Disables border at the bottom of the TopBar.
153 153
 
154 154
 ### `rightButtons`
155 155
 
156
-An array of buttons to be displayed at the right side of the TopBar. Button layout is from right to left. See the [Buttons](button-options) section for more details.
156
+An array of buttons to be displayed at the right side of the TopBar. Button layout is from right to left. See the [Buttons](options-button) section for more details.
157 157
 
158 158
 | Type                       | Required | Platform |
159 159
 | -------------------------- | -------- | -------- |

+ 1
- 1
website/docs/docs-bottomTabs.mdx View File

@@ -67,7 +67,7 @@ Once we run this code, our BottomTabs should look like this:
67 67
 ## Selecting Tabs Programmatically
68 68
 Tabs can be selected programmatically by updating the `currentTabIndex` or `currentTabId` options.
69 69
 
70
-We'll use the BottomTabs layout showcased [above](bottomTabs-docs#example) to demonstrate programmatic tab selection.
70
+We'll use the BottomTabs layout showcased [above](bottomTabs#example) to demonstrate programmatic tab selection.
71 71
 
72 72
 ### Selecting a tab by index
73 73
 The following mergeOptions command will select the second tab. We're passing the id of our BottomTabs layout, but we could also use the id of any of the child components, for example `PROFILE_TAB` or `PROFILE_SCREEN`.

+ 2
- 1
website/docs/docs-playground-app.mdx View File

@@ -13,5 +13,6 @@ If you want to have a quick look around and test things out, you can run the pla
13 13
     - `npm run start` to get the packager running in the terminal, leave it open
14 14
     - **iOS**: open `./playground/ios` in Xcode and run it
15 15
     - **Android**: open `./playground/android` in Android Studio and run it
16
-3. You can run tests if / when you need to (list of scripts [available here](contributing#scripts)). Before you start changing things, make sure everything works.
16
+3. You can run tests if / when you need to (list of scripts [available here](meta-contributing#scripts)). Before
17
+you start changing things, make sure everything works.
17 18
 	- To easily run all tests in parallel `npm run test-all`

+ 2
- 2
website/docs/style-animations.mdx View File

@@ -29,7 +29,7 @@ The following properties can be animated with our animation framework:
29 29
 ## Layout animations
30 30
 
31 31
 ### Stack animations
32
-When animating screens in and out of a stack, there are three elements you can work with: 
32
+When animating screens in and out of a stack, there are three elements you can work with:
33 33
 
34 34
 1. **content** - screen being pushed or popped
35 35
 2. **topBar** - stack's TopBar
@@ -146,7 +146,7 @@ At the moment, the transition is available on iOS for push and pop while on Andr
146 146
 
147 147
 Let's take a more in-depth look at the following example, which you can find in the playground app:
148 148
 
149
-> [Source screen](https://github.com/wix/react-native-navigation/blob/master/playground/src/screens/sharedElementTransition/CocktailsList.js) and the [Destination screen](https://github.com/wix/react-native-navigation/blob/master/playground/src/screens/sharedElementTransition/CocktailDetailsScreen.js)
149
+> [Source screen](https://github.com/wix/react-native-navigation/blob/master/playground/src/screens/sharedElementTransition/CocktailsListScreen.js) and the [Destination screen](https://github.com/wix/react-native-navigation/blob/master/playground/src/screens/sharedElementTransition/CocktailDetailsScreen.js)
150 150
 
151 151
 
152 152
 <p align="center">

+ 3
- 3
website/docusaurus.config.js View File

@@ -49,7 +49,7 @@ module.exports = {
49 49
             },
50 50
             {
51 51
               label: 'Contributing',
52
-              to: 'docs/contributing',
52
+              to: 'docs/meta-contributing',
53 53
             }
54 54
           ],
55 55
         },
@@ -95,7 +95,7 @@ module.exports = {
95 95
           routeBasePath: 'docs',
96 96
           path: 'docs',
97 97
           editUrl:
98
-            'https://github.com/wix/react-native-navigation/edit/master/website/docs'
98
+            'https://github.com/wix/react-native-navigation/edit/master/website'
99 99
         },
100 100
         theme: {
101 101
           customCss: require.resolve('./src/css/custom.css'),
@@ -110,7 +110,7 @@ module.exports = {
110 110
           path: 'api',
111 111
           sidebarPath: require.resolve('./sidebarsApi.js'),
112 112
           editUrl:
113
-            'https://github.com/wix/react-native-navigation/edit/master/website/docs'
113
+            'https://github.com/wix/react-native-navigation/edit/master/website'
114 114
         },
115 115
         theme: {
116 116
           customCss: require.resolve('./src/css/custom.css'),