导航中Global
缺少菜单,同时:
- 文件
global.html
存在 - 未使用模板时,该
Global
条目出现在正确的 TOC 中
是否有特殊设置可用于要求DocStrap Template
将Global
菜单添加到导航?
以下是我的设置:
Gruntfile.js
jsdoc: {
all: {
src: [
'./src/main/js/**/*.js',
'./README.md',
],
options: {
destination: 'doc',
tutorials: './src/main/js/tut',
configure : "jsdocconf.json",
template: 'node_modules/grunt-jsdoc/node_modules/ink-docstrap/template',
},
}
},
jsdocconf.json
{
"tags": {
"allowUnknownTags" : true
},
"plugins" : ["plugins/markdown"],
"templates": {
"cleverLinks" : true,
"monospaceLinks" : true,
"dateFormat" : "ddd MMM Do YYYY",
"outputSourceFiles" : false,
"outputSourcePath" : false,
"systemName" : "Name",
"footer" : "",
"copyright" : "Copyright",
"navType" : "vertical",
"theme" : "spacelab",
"linenums" : true,
"collapseSymbols" : false,
"inverseNav" : false,
"highlightTutorialCode" : true
},
"markdown" : {
"parser" : "gfm",
"hardwrap" : false
}
}