forked from citation-js/citation-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.jsdoc.js
45 lines (42 loc) · 1.02 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
const fs = require('fs')
const path = require('path')
const lerna = require('./lerna.json')
const version = lerna.version.split('.', 2).join('.')
const packageDir = path.join(__dirname, 'packages')
const packageSrc = fs.readdirSync(packageDir)
.map(package => path.join(packageDir, package, 'src'))
module.exports = {
plugins: ['plugins/markdown'],
markdown: {
idInHeadings: true
},
tags: {
allowUnknownTags: true,
dictionaries: ['jsdoc', 'closure']
},
source: {
include: packageSrc,
exclude: [
'packages/cli/src',
'packages/core/src/plugin-common'
],
includePattern: '\\.js(doc)?$',
},
opts: {
// template: '../jsdoc-template/default',
// template: '../jsdoc-template',
encoding: 'utf8',
readme: './README.md',
recurse: true,
destination: './jsdoc/' + version + '/',
tutorials: './packages/core/docs/'
},
templates: {
default: {
layoutFile: '.jsdoc.tmpl',
includeDate: true
},
cleverLinks: false,
monospaceLinks: false
}
}