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
 
124
 
125
 ### `leftButtons`
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
 Android currently only supports a single left button and does not support custom left Buttons.
130
 Android currently only supports a single left button and does not support custom left Buttons.
131
 :::
131
 :::
132
 
132
 
153
 
153
 
154
 ### `rightButtons`
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
 | Type                       | Required | Platform |
158
 | Type                       | Required | Platform |
159
 | -------------------------- | -------- | -------- |
159
 | -------------------------- | -------- | -------- |

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

67
 ## Selecting Tabs Programmatically
67
 ## Selecting Tabs Programmatically
68
 Tabs can be selected programmatically by updating the `currentTabIndex` or `currentTabId` options.
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
 ### Selecting a tab by index
72
 ### Selecting a tab by index
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`.
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
     - `npm run start` to get the packager running in the terminal, leave it open
13
     - `npm run start` to get the packager running in the terminal, leave it open
14
     - **iOS**: open `./playground/ios` in Xcode and run it
14
     - **iOS**: open `./playground/ios` in Xcode and run it
15
     - **Android**: open `./playground/android` in Android Studio and run it
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
 	- To easily run all tests in parallel `npm run test-all`
18
 	- To easily run all tests in parallel `npm run test-all`

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

29
 ## Layout animations
29
 ## Layout animations
30
 
30
 
31
 ### Stack animations
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
 1. **content** - screen being pushed or popped
34
 1. **content** - screen being pushed or popped
35
 2. **topBar** - stack's TopBar
35
 2. **topBar** - stack's TopBar
146
 
146
 
147
 Let's take a more in-depth look at the following example, which you can find in the playground app:
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
 <p align="center">
152
 <p align="center">

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

49
             },
49
             },
50
             {
50
             {
51
               label: 'Contributing',
51
               label: 'Contributing',
52
-              to: 'docs/contributing',
52
+              to: 'docs/meta-contributing',
53
             }
53
             }
54
           ],
54
           ],
55
         },
55
         },
95
           routeBasePath: 'docs',
95
           routeBasePath: 'docs',
96
           path: 'docs',
96
           path: 'docs',
97
           editUrl:
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
         theme: {
100
         theme: {
101
           customCss: require.resolve('./src/css/custom.css'),
101
           customCss: require.resolve('./src/css/custom.css'),
110
           path: 'api',
110
           path: 'api',
111
           sidebarPath: require.resolve('./sidebarsApi.js'),
111
           sidebarPath: require.resolve('./sidebarsApi.js'),
112
           editUrl:
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
         theme: {
115
         theme: {
116
           customCss: require.resolve('./src/css/custom.css'),
116
           customCss: require.resolve('./src/css/custom.css'),