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 11const { themes} = require ( 'prism-react-renderer' ) ;
22const lightCodeTheme = themes . github ;
33const darkCodeTheme = themes . dracula ;
4- const isDev = process . env . NODE_ENV === 'development' ;
54
65// With JSDoc @type annotations, IDEs can provide config autocompletion
76/** @type {import('@docusaurus/types').DocusaurusConfig } */
@@ -18,7 +17,7 @@ const isDev = process.env.NODE_ENV === 'development';
1817 projectName : 'react-native-ui-lib' , // Usually your repo name.
1918 trailingSlash : false ,
2019 customFields : {
21- docsMainEntry : ` ${ isDev ? 'next/' : '' } getting-started/setup` ,
20+ docsMainEntry : ' getting-started/setup' ,
2221 expoSnackLink : 'https://snack.expo.io/@ethanshar/rnuilib_snack' ,
2322 stars : '4.7'
2423 } ,
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export default () => {
4040 </ div >
4141
4242 < div className = { styles . buttons } >
43- < Link to = { `docs/${ docsMainEntry } ` } >
43+ < Link to = { `docs/${ location . hostname === 'localhost' ? 'next/' : '' } ${ docsMainEntry } ` } >
4444 < button className = { 'button dark' } > View Docs</ button >
4545 </ Link >
4646
You can’t perform that action at this time.
0 commit comments