Skip to content

Commit cd3f663

Browse files
committed
Improve styles!
1 parent 4fd3265 commit cd3f663

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

docs/common-mistakes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Most apps should only ever render one navigator inside of a React component, and
1313
Here's what you might write in your code -- note that this example would be incorrect:
1414

1515
```javascript
16-
export default App extends React.Component {
16+
export default class App extends React.Component {
1717
render() {
1818
/* In the root component we are rendering the app navigator */
1919
return <AppNavigator />;

website/pages/en/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class HomeSplash extends React.Component {
5555
<Button href={`/docs/${this.props.language}/api-reference.html`}>
5656
<translate>Read API Reference</translate>
5757
</Button>
58-
<Button href="https://expo.io/@react-navigation/NavigationPlayground">
58+
<Button href="https://github.com/react-navigation/react-navigation/tree/master/examples/NavigationPlayground">
5959
<translate>Try the demo app</translate>
6060
</Button>
6161
{/* <Button href="https://snack.expo.io/@react-navigation/hello-world">Run "Hello World" in Snack</Button> */}

website/siteConfig.js

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,16 @@ const users = [
1010
const siteConfig = {
1111
title: 'React Navigation',
1212
tagline: 'Routing and navigation for your React Native apps',
13-
url: 'https://reactnavigation.org',
13+
url: process.env.STABLE_RELEASE
14+
? 'https://reactnavigation.org'
15+
: 'https://next.react-navigation.org',
1416
baseUrl: '/',
15-
organizationName: 'react-navigation',
16-
projectName: 'react-navigation.github.io',
17+
organizationName: process.env.STABLE_RELEASE
18+
? 'react-navigation'
19+
: 'react-navigation-next',
20+
projectName: process.env.STABLE_RELEASE
21+
? 'react-navigation.github.io'
22+
: 'react-navigation-next.github.io',
1723
headerLinks: [
1824
{ doc: 'getting-started', label: 'Docs' },
1925
{ doc: 'api-reference', label: 'API' },
@@ -37,11 +43,16 @@ const siteConfig = {
3743
onPageNav: 'separate',
3844
scripts: ['https://buttons.github.io/buttons.js'],
3945
repoUrl: 'https://github.com/react-navigation/react-navigation',
40-
editUrl: 'https://github.com/react-navigation/react-navigation.github.io/edit/source/docs/',
41-
algolia: {
42-
apiKey: 'c967b4a1491b9cb486d3dca087b771e6',
43-
indexName: 'reactnavigation',
44-
},
46+
editUrl:
47+
'https://github.com/react-navigation/react-navigation.github.io/edit/source/docs/',
48+
...(process.env.STABLE_RELEASE
49+
? {
50+
algolia: {
51+
apiKey: 'c967b4a1491b9cb486d3dca087b771e6',
52+
indexName: 'reactnavigation',
53+
},
54+
}
55+
: {}),
4556
};
4657

4758
module.exports = siteConfig;

0 commit comments

Comments
 (0)