-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
34 lines (33 loc) · 1.04 KB
/
config.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
const demos = [
{ title: '总览', path: '/demo/overview'},
]
docute.init({
landing: 'landing.html',
// announcement(route) {
// const info = { type: 'warning' }
// info.html = '<a style="margin-right:10px;" class="docute-button docute-button-mini docute-button-warning" href="https://github.com/egoist/donate" target="_blank">注意!</a> 图表还处于开发阶段,所以文档还在剧烈变动阶段.'
// return info
// },
debug: true,
// home: 'https://raw.githubusercontent.com/egoist/docute/master/README.md',
repo: 'd3-hub/d3-bar',
tocVisibleDepth: 4,
nav: {
default: [
{title: '主页', path: '/home'},
{title: '语法', path: '/grammar'},
{title: '案例', path: '/case', type: 'dropdown', items: demos},
]
},
plugins: [
docuteIframe(),
docsearch({
apiKey: '65360cf9a91d87cd455d2b286d0d89ee',
indexName: 'docute',
// tags: ['english', 'zh-Hans', 'zh-Hant', 'ja'],
tags: ['changelog', 'chart'],
url: 'https://docute.js.org'
}),
evanyou()
]
})