-
Notifications
You must be signed in to change notification settings - Fork 0
/
doczrc.js
39 lines (34 loc) · 1015 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
27
28
29
30
31
32
33
34
35
36
37
38
39
import * as path from 'path'
import pkg from './package.json'
const libName = pkg.name
// const PUBLIC = path.resolve(__dirname, 'public')
const SRC = path.resolve(__dirname, 'src')
const DOCS = path.resolve(__dirname, 'docz')
export default {
dest: './docs',
// files: './docz/**/*.mdx',
ordering: 'ascending',
src: './docz',
title: 'style-assistant',
description: pkg.description,
base: `/${libName}/`,
// description: 'assist',
indexHtml: `${DOCS}/index.html`,
// theme: 'src/theme/index',
// ordering: 'ascending',
// propsParser: false,
// mdPlugins: [externalLinks.default],
// htmlContext: {
// favicon: '/public/favicon.ico',
// },
modifyBundlerConfig: config => {
config.resolve.alias = Object.assign({}, config.resolve.alias, {
// '@fonts': `${PUBLIC}/fonts`,
// '@images': `${PUBLIC}/images`,
'@examples': `${DOCS}/Examples`,
'style-assistant': `${SRC}/index`,
'@shared': `${DOCS}/shared`,
})
return config
},
}