A simple plugin for jsdoc (
pase vue SFC info to description
)
npm i jsdoc-vue-component -D
This plugin just extract the component info(Markdown), and instert it into the
@vue
's position.
Not affect other jsdoc features of the code.
just add @vue
tag to the to document in you vue SFC.
/**
* sidebar component description
* @vue
* @exports component/SideBar
*/
export default {}
{
"plugins": [
"node_modules/jsdoc-vue-component",
"plugins/markdown",
"plugins/summarize"
],
"markdown": {
"tags": ["author", "classdesc", "description", "param", "property", "returns", "see", "throws", "vue"]
},
"recurseDepth": 10,
"source": {
"include": ["fe/src"],
"includePattern": ".+\\.(js|vue)$",
"excludePattern": "(^|\\/|\\\\)_"
},
"sourceType": "module",
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc", "closure"]
},
"templates": {
"logoFile": "",
"cleverLinks": false,
"monospaceLinks": false,
"dateFormat": "ddd MMM Do YYYY",
"outputSourceFiles": true,
"outputSourcePath": true,
"systemName": "DocStrap",
"footer": "",
"copyright": "DocStrap Copyright © 2012-2015 The contributors to the JSDoc3 and DocStrap projects.",
"navType": "vertical",
"theme": "cosmo",
"linenums": true,
"collapseSymbols": false,
"inverseNav": true,
"protocol": "html://",
"methodHeadingReturns": false
},
"markdown": {
"parser": "gfm",
"hardwrap": true
},
"opts": {
"template": "node_modules/sherry-docstrap/template",
"encoding": "utf8",
"destination": "./public/jsdoc/",
"recurse": true,
"readme": "README.md",
"tutorials": "./docs/"
}
}