File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 1
1
const { themes} = require ( 'prism-react-renderer' ) ;
2
2
const lightCodeTheme = themes . github ;
3
3
const darkCodeTheme = themes . dracula ;
4
- const isDev = process . env . NODE_ENV === 'development' ;
5
4
6
5
// With JSDoc @type annotations, IDEs can provide config autocompletion
7
6
/** @type {import('@docusaurus/types').DocusaurusConfig } */
@@ -18,7 +17,7 @@ const isDev = process.env.NODE_ENV === 'development';
18
17
projectName : 'react-native-ui-lib' , // Usually your repo name.
19
18
trailingSlash : false ,
20
19
customFields : {
21
- docsMainEntry : ` ${ isDev ? 'next/' : '' } getting-started/setup` ,
20
+ docsMainEntry : ' getting-started/setup' ,
22
21
expoSnackLink : 'https://snack.expo.io/@ethanshar/rnuilib_snack' ,
23
22
stars : '4.7'
24
23
} ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default () => {
40
40
</ div >
41
41
42
42
< div className = { styles . buttons } >
43
- < Link to = { `docs/${ docsMainEntry } ` } >
43
+ < Link to = { `docs/${ location . hostname === 'localhost' ? 'next/' : '' } ${ docsMainEntry } ` } >
44
44
< button className = { 'button dark' } > View Docs</ button >
45
45
</ Link >
46
46
You can’t perform that action at this time.
0 commit comments