jsdoc-region-tag
v3.0.0
Published
replace region tags with code samples
Downloads
31,006
Readme
Region Tag JSDoc Plugin
Reads a samples directory, extracting samples between [START]
/[STOP]
tags,
allowing these samples to be placed in JSDoc comments, like so:
/*
* @example <caption>include:samples/document-snippets/cluster.js</caption>
* region_tag:bigtable_delete_cluster
*/
Usage
npm i jsdoc-region-tag
.add the plugin to your
.jsdoc.js
.module.exports = { plugins: [ 'jsdoc-region-tag' ] }
Configuration
The environment varaible SAMPLES_DIRECTORY
can be set, to set a samples
directory other than ./samples
.
License
Apache-2.0