UNPKG

1.2 kBJavaScriptView Raw
1const Docma = require('docma');
2const Package = require('./package');
3
4Docma.create()
5 .build({
6 app: {
7 title: Package.name,
8 base: '/',
9 entrance: 'content:readme',
10 routing: 'query',
11 server: Docma.ServerType.GITHUB,
12 },
13 markdown: {
14 gfm: true,
15 tables: true,
16 breaks: false,
17 pedantic: false,
18 sanitize: false,
19 smartLists: false,
20 smartypants: false,
21 tasks: false,
22 emoji: true,
23 },
24 src: [
25 { readme: './README.md' },
26 { snekfetch: './src/index.js' },
27 ],
28 dest: './docs',
29 jsdoc: {
30 plugins: ['jsdoc-dynamic'],
31 },
32 template: {
33 options: {
34 title: Package.name,
35 navItems: [
36 {
37 label: 'Readme',
38 href: '?content=readme',
39 },
40 {
41 label: 'Documentation',
42 href: '?api=snekfetch',
43 iconClass: 'ico-book',
44 },
45 {
46 label: 'GitHub',
47 href: Package.homepage,
48 target: '_blank',
49 iconClass: 'ico-md ico-github',
50 },
51 ],
52 },
53 },
54 })
55 .catch(console.error); // eslint-disable-line no-console