forked from doczjs/docz-website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
doczrc.js
34 lines (29 loc) · 894 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
import * as path from 'path'
import FaviconsWebpackPlugin from 'favicons-webpack-plugin'
import externalLinks from 'remark-external-links'
const PUBLIC = path.resolve(__dirname, 'public')
const SRC = path.resolve(__dirname, 'src')
const modifyBundlerConfig = config => {
config.resolve.alias = Object.assign({}, config.resolve.alias, {
'@fonts': `${PUBLIC}/fonts`,
'@images': `${PUBLIC}/images`,
'@components': `${SRC}/theme/components`,
'@styles': `${SRC}/theme/styles`,
})
config.plugins.push(
new FaviconsWebpackPlugin({
logo: `${PUBLIC}/images/favicon.png`,
inject: true,
})
)
return config
}
export default {
title: 'Docz',
description: 'It has never been so easy to document your things',
indexHtml: 'src/index.html',
theme: 'src/theme/index',
propsParser: false,
mdPlugins: [externalLinks.default],
modifyBundlerConfig,
}