jsdoc-region-tag

3.0.0 • Public • Published

Region Tag JSDoc Plugin

Conventional Commits

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

  1. npm i jsdoc-region-tag.

  2. 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

/jsdoc-region-tag/

    Package Sidebar

    Install

    npm i jsdoc-region-tag

    Weekly Downloads

    2,152

    Version

    3.0.0

    License

    Apache-2.0

    Unpacked Size

    20.9 kB

    Total Files

    5

    Last publish

    Collaborators

    • bcoe
    • google-wombot