-
Notifications
You must be signed in to change notification settings - Fork 5
/
docs.js
83 lines (81 loc) · 2.76 KB
/
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
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
'use strict';
const docma = require('docma');
const pkg = require('./package');
docma.create()
.build({
app: {
title: 'Popcorn Time API',
base: '/',
entrance: 'content:information',
routing: 'query',
server: docma.ServerType.GITHUB,
meta: [
{name: 'og:title', content: 'Popcorn Time API'},
{name: 'og:url', content: 'https://popcorn-api.js.org/'},
{name: 'og:image', content: 'https://popcorn-api.js.org/img/logo.png'},
{name: 'og:description', content: 'A JavaScript library to easily access the Popcorn Time API'},
{name: 'og:site_name', content: 'Nirewen'},
{name: 'og:keywords', content: 'popcorn,time,api,javascript,nodejs'},
{name: 'theme-color', content: '#f1dec6'}
]
},
markdown: {
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: false,
smartLists: false,
smartypants: false,
tasks: false,
emoji: true,
},
assets: {
'/': './img/favicon.ico',
'/img/': './img/logo.png'
},
src: [
{information: './README.md'},
{examples: './examples/examples.md'},
{popcorn: './dist/**/*.js'},
],
jsdoc: {
sort: 'kind'
},
dest: './docs',
clean: true,
template: {
options: {
title: 'Popcorn Time API',
logo: 'img/logo.png',
sidebar: {
itemsFolded: true
},
navbar: {
menu: [
{
label: 'Information',
href: '?content=information',
iconClass: 'fas fa-info'
},
{
label: 'Examples',
href: '?content=examples',
iconClass: 'fab fa-js'
},
{
label: 'Documentation',
href: '?api=popcorn',
iconClass: 'fas fa-book',
},
{
href: pkg.repository.homepage,
target: '_blank',
iconClass: 'fab fa-github',
},
],
}
},
},
})
.catch(console.error);