-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocma.js
More file actions
94 lines (93 loc) · 2.19 KB
/
docma.js
File metadata and controls
94 lines (93 loc) · 2.19 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
var Docma = require('docma');
const x = {
'src': [
'./README.md',
'./src/base.js',
'./src/fire.js',
'./src/external/discord.js',
'./src/hook.js',
],
'clean': true,
'dest': './docs/',
'app': {
'title': 'Hookcord Documentation',
'base': '/hookcord',
'entrance': 'content:readme',
'server': Docma.ServerType.GITHUB,
'routing': 'query',
},
'markdown': {
'gfm': true,
'tables': true,
'breaks': false,
'pedantic': false,
'sanitize': false,
'smartLists': false,
'smartypants': false,
'tasks': false,
'emoji': true,
},
'template': {
'path': 'zebra',
'options': {
'title': {
'label': 'Hookcord',
'href': '#',
},
'sidebar': {
'enabled': true,
'outline': 'tree',
'collapsed': false,
'toolbar': true,
'itemsFolded': false,
'itemsOverflow': 'crop',
'badges': true,
'search': true,
'animations': true,
},
'symbols': {
'autoLink': true,
'params': 'list',
'enums': 'list',
'props': 'list',
'meta': false,
},
'contentView': {
'bookmarks': 'h1,h2,h3',
},
'navbar': {
'enabled': true,
'fixed': true,
'dark': false,
'animations': true,
'menu': [
{
'iconClass': 'fas fa-book',
'label': 'API Reference',
'href': '?api',
},
{
'iconClass': 'fab fa-lg fa-github',
'label': '',
'href': 'https://github.com/maxrumsey/hookcord',
'target': '_blank',
'items': [
{ 'label': 'Github', 'href': 'https://github.com/maxrumsey/hookcord' },
{ 'separator': true },
{ 'label': 'Readme', 'href': 'https://github.com/maxrumsey/hookcord/blob/master/README.md' },
{ 'label': 'License', 'href': 'https://github.com/maxrumsey/hookcord/blob/master/LICENSE.md' },
],
},
],
},
},
},
};
Docma.create()
.build(x)
.then(() => {
console.log('Documentation is built successfully.');
})
.catch(err => {
console.log(err);
});