-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoczrc.js
26 lines (25 loc) · 935 Bytes
/
doczrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import path from 'path';
module.exports = {
native: true,
typescript: true,
menu: [
'Welcome',
'Getting Started',
{ name: 'Guides', menu: ['Back', 'Transitions', 'React Navigation Interoperability'] },
'Example',
'Contribute',
'Roadmap',
{ name: 'API', menu: ['Screen', 'FullScreenPortal'] },
],
modifyBundlerConfig: config => {
// Combine the default docz aliases with our custom aliases.
config.resolve.alias = Object.assign({}, config.resolve.alias, {
components: path.resolve(__dirname, 'docs/components/'),
'react-native$': 'react-native-web',
'react-nonav$': path.resolve(__dirname, 'src/index.ts'), // eslint-disable-line
'react-native-reanimated$': path.resolve(__dirname, 'docs/mocks/react-native-reanimated'), // eslint-disable-line
});
return config;
},
indexHtml: path.resolve(__dirname, 'docs/theme/index.html'), // eslint-disable-line
};