This repository has been archived by the owner on Nov 29, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 211
/
jsdoc.config.js
81 lines (81 loc) · 2.32 KB
/
jsdoc.config.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
module.exports = {
opts: {
encoding: 'utf8',
destination: './docs/',
tutorials: './tutorials',
recurse: true,
/*
TODO: Providing JSDoc with package.json makes it generate
`/docs/enketo-express/[version number]/index.html` instead of simply
`/docs/index.html`. For now we will stick with providing
documentation only for latest version, but it could be nice to
expand it to multiple versions in the future.
*/
// package: 'package.json',
readme: 'README.md',
template: 'node_modules/docdash',
},
plugins: ['jsdoc-ts-utils', 'plugins/markdown'],
source: {
include: ['app/', 'config/', 'tools/', './README.md'],
},
templates: {
cleverLinks: true,
monospaceLinks: true,
default: {
outputSourceFiles: true,
includeDate: false,
useLongnameInNav: true,
},
},
markdown: {
idInHeadings: true,
},
docdash: {
static: true,
sort: true,
meta: {
title: 'Enketo Express',
description:
'The full-fledged Enketo web application for the ODK ecosystem',
},
search: true,
collapse: false,
wrap: true,
typedefs: true,
removeQuotes: 'none',
scripts: [],
menu: {
'Github repo': {
href: 'https://github.com/enketo/enketo-express',
target: '_blank',
class: 'menu-item',
id: 'repository',
},
'Change log': {
href: 'https://github.com/enketo/enketo-express/blob/master/CHANGELOG.md',
target: '_blank',
class: 'menu-item',
id: 'change-log',
},
},
sectionOrder: [
'Tutorials',
'Classes',
'Modules',
'Externals',
'Events',
'Namespaces',
'Mixins',
'Interfaces',
],
},
tsUtils: {
/**
* We may actually want to enable this, but it was a surprisng default.
*
* @see {@link https://github.com/homer0/jsdoc-ts-utils#configuration}
*/
typeScriptUtilityTypes: false,
},
};