replace region tags with code samples
npm install jsdoc-region-tag
Reads a samples directory, extracting samples between [START]/[STOP] tags,
allowing these samples to be placed in JSDoc comments, like so:
``js`
/*
* @example
* region_tag:bigtable_delete_cluster
*/
1. npm i jsdoc-region-tag..jsdoc.js
2. add the plugin to your .
`js`
module.exports = {
plugins: [
'jsdoc-region-tag'
]
}
The environment varaible SAMPLES_DIRECTORY can be set, to set a samples./samples`.
directory other than
Apache-2.0