-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjsdoc-conf.json
56 lines (56 loc) · 2.27 KB
/
jsdoc-conf.json
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
{
"tags": {
"allowUnknownTags": false
},
"source": {
"include": [
"src/lib"
], //JavaScript 文件(目录)列表
"exclude": [], //在 include 中需要过滤的文件(目录)
"includePattern": ".+\\.(js|es)$" //正则过滤符合规则的文件
},
"plugins": [
"plugins/markdown"
], //使用markdown 插件
"markdown": {
"tags": [
"file"
], //增加额外需要解析的标签
"excludeTags": [
"author"
], //排除不用解析的标签
"parser": "gfm", //gfm
"hardwrap": true //允许多行
},
"templates": { //模板配置,包含了 DocStrap 的配置参数
//"logoFile": "images/logo.png", //logo 文件路径
"cleverLinks": true,
"monospaceLinks": true,
"dateFormat": "ddd MMM Do YYYY", //当需要打印日期时使用的格式
"outputSourceFiles": false, //是否输出文件源码
"outputSourcePath": false, //是否输出源码路径
"systemName": "Vue H5+", //系统名称
"footer": "", //页脚内容
"copyright": "", //页脚版权信息
"navType": "vertical", //vertical 或 inline
//docstrap 模板主题。可取值: cosmo, cyborg, flatly, journal, lumen, paper, readable, sandstone, simplex, slate, spacelab, superhero, united, yeti
// cosmo, flatly, journal, readable, simplex, slate, united
"theme": "readable",
"linenums": true, //是否显示行号
"collapseSymbols": false, //是否折叠太长的内容
"inverseNav": true, //导航是否使用 bootstrap 的 inverse header
"protocol": "html://", //生成文档使用的阅读协议
"methodHeadingReturns": false //method 方法标题上是否包含返回类型
},
//命令行执行参数配置。在这里配置了后
//命令行只需要执行: jsdoc -c jsdoc-conf.json 即可
"opts": {
//"template": "templates/default", //使用 JSDoc 默认模板 default haruki silent
// "template": "./node_modules/ink-docstrap/template", //使用 docstrap 模板
"template": "./doc-template", //拷贝出来的 docstrap 模板
"destination": "./docs/", //输出目录。等同于 -d ./out/
"recurse": true, //是否递归查找。 -r
"debug": false, //启用调试模式。--debug
"readme": "README.md" //要写到文档首页的 readme 文档。-R README.md
}
}