-
Notifications
You must be signed in to change notification settings - Fork 0
/
docs.js
46 lines (43 loc) · 896 Bytes
/
docs.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
const Docma = require('docma')
const docma = new Docma()
const { name } = require('./package.json')
const config = {
app: {
entrance: 'api',
routing: 'query',
server: Docma.ServerType.GITHUB,
title: name
},
dest: './docs',
jsdoc: {
access: 'public',
hierarchy: true,
module: false,
sort: 'grouped',
undescribed: true
},
markdown: {
sanitize: false
},
src: [
{ _def_: './src/index.js' },
{ _def_: './src/structures/games.js' },
{ _def_: './src/structures/gamePreview.js' },
{ _def_: './src/structures/game.js' }
],
template: {
options: {
navbar: true,
navItems: [
{
href: 'https://github.com/aidant/overtrack.js',
iconClass: 'ico-md ico-github',
label: 'GitHub',
target: '_blank'
}
]
}
}
}
docma.build(config)
.catch(console.error)