Skip to content

Commit 844a2b1

Browse files
authored
docs: fix broken documentation links after upgrading docs to docusaurus (#3734)
1 parent e4448e7 commit 844a2b1

23 files changed

+29
-29
lines changed

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Getting Started
4-
url: https://callstack.github.io/react-native-paper/getting-started.html
4+
url: https://callstack.github.io/react-native-paper/docs/guides/getting-started
55
about: Read how to get started with react-native-paper.
66
- name: Documentation
7-
url: https://callstack.github.io/react-native-paper/index.html
7+
url: https://callstack.github.io/react-native-paper
88
about: Read the official documentation.
99
- name: Example
1010
url: https://snack.expo.dev/@react-native-paper/react-native-paper-example_v5

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Check the components and their usage in our [documentation](https://callstack.gi
3232

3333
- Follows [material design guidelines](https://m3.material.io/get-started/)
3434
- Works on both iOS and Android following [platform adaptation guidelines](https://material.io/design/platform-guidance/cross-platform-adaptation.html)
35-
- Full [theming support](https://callstack.github.io/react-native-paper/theming.html)
35+
- Full [theming support](https://callstack.github.io/react-native-paper/docs/guides/theming)
3636

3737
## Try it out
3838

docs/docs/guides/02-theming.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ export default function App() {
502502

503503
### Migrating to Material You
504504

505-
If you are migrating from Material Design 2 (4.x and lower) to Material You (5.x), please refer to our [Migration Guide](https://callstack.github.io/react-native-paper/introducing-v5-with-material-you.html)
505+
If you are migrating from Material Design 2 (4.x and lower) to Material You (5.x), please refer to our [Migration Guide](https://callstack.github.io/react-native-paper/docs/guides/migration-guide-to-5.0)
506506

507507
## Applying a theme to a paper component
508508

docs/docs/guides/08-theming-with-react-navigation.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ We don't need to limit ourselves to the themes offered by the libraries in defau
245245
You can learn all about it their documentations:
246246
247247
- [Theming in React Navigation](https://reactnavigation.org/docs/themes/)
248-
- [Theming in React Native Paper](https://callstack.github.io/react-native-paper/theming.html)
248+
- [Theming in React Native Paper](https://callstack.github.io/react-native-paper/docs/guides/theming)
249249
250250
## React Context for theme customization
251251
@@ -309,7 +309,7 @@ export default function App() {
309309
}
310310
```
311311
312-
Now that the Context is available at every component, all we need to do is import it. Next thing is to provide the user with some UI element to control changing the theme. We will use `Paper`'s [Switch](https://callstack.github.io/react-native-paper/switch.html) for this purpose.
312+
Now that the Context is available at every component, all we need to do is import it. Next thing is to provide the user with some UI element to control changing the theme. We will use `Paper`'s [Switch](https://callstack.github.io/react-native-paper/docs/components/Switch) for this purpose.
313313
314314
```js
315315
import React from 'react';
@@ -349,6 +349,6 @@ React Native Paper components will automatically use provided theme thanks to th
349349
exposed by the library. You can see how it's done in the `Header` component code above.
350350
351351
If light/dark themes are not enough for your use case, you can learn more about creating Material Design themes [here](https://material.io/design/material-theming/implementing-your-theme.html#color).
352-
On `main` branch of the example app, you will find implemented [Menu](https://callstack.github.io/react-native-paper/menu.html) component, which allows to choose a few custom themes. Inspecting code in `utils` and `Header` may give you some idea how to use your own themes with `Paper`, in addition to dedicated [docs](https://callstack.github.io/react-native-paper/menu.html).
352+
On `main` branch of the example app, you will find implemented [Menu](https://callstack.github.io/react-native-paper/docs/components/Menu) component, which allows to choose a few custom themes. Inspecting code in `utils` and `Header` may give you some idea how to use your own themes with `Paper`, in addition to dedicated [docs](https://callstack.github.io/react-native-paper/docs/components/Menu).
353353
354354
Read more about integrating `Paper` with `React Navigation` in a brilliant [article](https://reactnavigation.org/blog/2020/01/29/using-react-navigation-5-with-react-native-paper/) by [@trensik](https://twitter.com/trensik)

docs/docs/guides/10-migration-guide-to-5.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ theme: {
4848
}
4949
```
5050

51-
Read more about using Material Design 2 in our [Material Design 2 theming guide](https://callstack.github.io/react-native-paper/theming.html#material-design-2)
51+
Read more about using Material Design 2 in our [Material Design 2 theming guide](https://callstack.github.io/react-native-paper/docs/guides/theming#material-design-2)
5252

5353
### Colors
5454

@@ -188,7 +188,7 @@ To use your current font config from <b>v2</b> and migrate to <b>v3</b> there ar
188188
+ configureFonts({config: fontConfig, isV3: false})
189189
```
190190

191-
📍Note: If you want to check how to use `configureFonts` on MD3, check the [Fonts](https://callstack.github.io/react-native-paper/fonts.html) guide.
191+
📍Note: If you want to check how to use `configureFonts` on MD3, check the [Fonts](https://callstack.github.io/react-native-paper/docs/guides/fonts.html) guide.
192192

193193
## Components
194194

docs/docs/guides/9-react-navigation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: Integrate AppBar with react-navigation
1111

1212
We assume that you have already installed the mentioned libraries above, otherwise please check out the guides below.
1313

14-
[React Native Paper - Getting Started](https://callstack.github.io/react-native-paper/getting-started.html)
14+
[React Native Paper - Getting Started](https://callstack.github.io/react-native-paper/docs/guides/getting-started)
1515

1616
[React Navigation - Getting Started](https://reactnavigation.org/docs/getting-started/)
1717

docs/public/3.0/appbar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
The top bar usually contains the screen title, controls such as navigation buttons, menu button etc.
2929
The bottom bar usually provides access to a drawer and up to four actions.</p>
3030
<p>By default Appbar uses primary color as a background, in dark theme with <code>adaptive</code> mode it will use surface colour instead.
31-
See <a href="https://callstack.github.io/react-native-paper/theming.html#dark-theme">Dark Theme</a> for more informations</p>
31+
See <a href="https://callstack.github.io/react-native-paper/3.0/theming#dark-theme">Dark Theme</a> for more informations</p>
3232
<div class="screenshots">
3333
<img class="medium" src="screenshots/appbar.png" />
3434
</div>

docs/public/3.0/bottom-navigation.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
It is primarily designed for use on mobile.</p>
2929
<p>For integration with React Navigation, you can use <a href="https://github.com/react-navigation/react-navigation-material-bottom-tab-navigator">react-navigation-material-bottom-tab-navigator</a>.</p>
3030
<p>By default Bottom navigation uses primary color as a background, in dark theme with <code>adaptive</code> mode it will use surface colour instead.
31-
See <a href="https://callstack.github.io/react-native-paper/theming.html#dark-theme">Dark Theme</a> for more informations</p>
31+
See <a href="https://callstack.github.io/react-native-paper/3.0/theming#dark-theme">Dark Theme</a> for more informations</p>
3232
<div class="screenshots">
3333
<img class="medium" src="screenshots/bottom-navigation.gif" />
3434
</div>

0 commit comments

Comments
 (0)