-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.jsdoc.js
50 lines (49 loc) · 1.03 KB
/
.jsdoc.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
const packageJson = require('./package.json');
module.exports = {
source: {
include: ['./src'],
includePattern: '.js$'
},
plugins: [
'docdash/nativeTypesPlugin',
'jsdoc-ts-utils',
'plugins/markdown',
],
templates: {
cleverLinks: true,
default: {
includeDate: false
}
},
opts: {
recurse: true,
destination: './docs',
readme: 'README.md',
template: 'node_modules/docdash'
},
docdash: {
title: packageJson.name,
meta: {
title: `${packageJson.name} docs`,
},
sectionOrder: [],
collapse: true,
refLinks: [
{
title: 'View the package on Yarn',
url: `https://yarnpkg.com/package/${packageJson.name}`,
type: 'yarn',
},
{
title: 'Go to the GitHub repository',
url: `https://github.com/${packageJson.repository}`,
type: 'github',
},
{
title: 'View the package on NPM',
url: `https://www.npmjs.com/package/${packageJson.name}`,
type: 'npm',
},
],
},
};