3.0.0 • Published 9 months ago

jsdoc-region-tag v3.0.0

Weekly downloads
31,481
License
Apache-2.0
Repository
github
Last release
9 months ago

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

3.0.0

9 months ago

2.0.1

2 years ago

2.0.0

2 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago