Skip to content

Commit 196d286

Browse files
authored
Docs - changed View Docs link (#3603)
1 parent e05b058 commit 196d286

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docuilib/docusaurus.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const {themes} = require('prism-react-renderer');
22
const lightCodeTheme = themes.github;
33
const 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
},

docuilib/src/components/MainSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)