@webdoc/legacy-template
Version:
Port of the JSDoc default template to webdoc!
38 lines (27 loc) • 992 B
Markdown
© 2020-2022 webdoc Labs
# /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 /template-library!
## Usage
Install the webdoc CLI and this template:
```shell
npm install -D /cli @webdoc/legacy-template
```
Create a `webdoc.conf.json` file in the root directory of your project:
```json
{
"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):
```shell
webdoc
```