Package detail

@webdoc/legacy-template

SukantPal2.9kThe Prosperity Public License 3.0.02.2.0

Port of the JSDoc default template to webdoc!

webdoc, jsdoc, template, jsdoc-template

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