-
Notifications
You must be signed in to change notification settings - Fork 98
/
doczrc.js
56 lines (53 loc) · 1.35 KB
/
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import * as path from 'path'
import externalLinks from 'remark-external-links'
const PUBLIC = path.resolve(__dirname, 'public')
const SRC = path.resolve(__dirname, 'src')
export default {
title: 'Docz',
description: 'It has never been so easy to document your things',
indexHtml: 'public/index.html',
theme: 'src/theme/index',
typescript: true,
propsParser: false,
mdPlugins: [externalLinks],
ignore: ['site-map.md', 'readme.md', 'src/theme/**'],
public: './public',
htmlContext: {
favicon: '/public/images/favicon.png',
},
menu: [
{
name: 'General',
menu: [
'Introduction',
'Getting started',
'Writing MDX',
'Built-in components',
'Document settings',
'Deploying your docs',
],
},
{
name: 'Customizing',
menu: ['Powered by Gatsby', 'Gatsby Theme', 'Creating your themes'],
},
{
name: 'References',
menu: [
'Migration Guide',
'Project Configuration',
'Components & Hooks API',
'Creating Plugins',
'MDX Plugins',
],
},
],
onCreateWebpackChain: config => {
config.resolve.alias
.set('@fonts', `${PUBLIC}/fonts`)
.set('@images', `${PUBLIC}/images`)
.set('@components', `${SRC}/theme/components`)
.set('@styles', `${SRC}/theme/styles`)
return config
},
}