@webdoc/legacy-template
v2.2.0
Published
Port of the JSDoc default template to webdoc!
Downloads
3,497
Maintainers
Readme
© 2020-2022 webdoc Labs
@webdoc/legacy-template
This package is a direct port of JSDoc's default template to webdoc. The publish
script has significant changes
due to the poor structure of the JSDoc project. Specifically, functions from jsdoc/templateHelper.js
have been
imported into the package and refactored to be compatible with webdoc. The template and static files have also
been heavily refactored.
A significant part of the JSDoc template code has been moved to @webdoc/template-library!
Usage
Install the webdoc CLI and this template:
npm install -D @webdoc/cli @webdoc/legacy-template
Create a webdoc.conf.json
file in the root directory of your project:
{
"sourceFiles": {
"includePattern": "./**/*.js"
},
"opts": {
"template": "@webdoc/legacy-template"
}
}
Run webdoc (this will automatically detect the configuration file; if not, use -c <conf-file.json>
to pass it manually):
webdoc