-
Notifications
You must be signed in to change notification settings - Fork 10
/
docma.js
73 lines (71 loc) · 1.55 KB
/
docma.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
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
/**
* Created by macdja38 on 2017-02-28.
*/
"use strict";
const Docma = require('docma');
let config = {
app: {
title: 'pvpcraft',
base: '/pvpcraft/',
server: Docma.ServerType.GITHUB,
},
src: [
'./lib/*.js',
'./README.md',
],
dest: './docs',
jsdoc: {
plugins: ["node_modules/jsdoc-strip-async-await"]
},
template: {
// Template-specific options
options: {
title: 'PvPCraft',
sidebar: true,
collapsed: false,
badges: true,
search: true,
navbar: true,
navItems: [
{
label: 'Documentation',
href: '#',
iconClass: 'ico-book'
},
{
label: 'Demos',
href: 'https://github.com/macdja38/pvpcraft/tree/master/modules',
iconClass: 'ico-mouse-pointer'
},
{
label: 'Download',
iconClass: 'ico-md ico-download',
items: [
{
label: 'dev',
href: 'https://github.com/macdja38/pvpcraft/archive/dev.zip',
},
{
label: 'release',
href: 'https://github.com/macdja38/pvpcraft/archive/master.zip',
}
]
},
{
label: 'GitHub',
href: 'https://github.com/macdja38/pvpcraft',
target: '_blank',
iconClass: 'ico-md ico-github'
}
]
}
},
};
Docma.create()
.build(config)
.then(function () {
console.log('Documentation built successfully.');
})
.catch(function (error) {
console.log(error);
});