@@ -3,36 +3,51 @@ var processJavaScript = require("./process/javascript");
3
3
var path = require ( "path" ) ;
4
4
5
5
/**
6
- * @module {function} bit-docs-js
7
- * @parent plugins
8
- * @group bit-docs-js/static static
9
- * @group bit-docs-js/tags tags
6
+ * @parent bit-docs-js/modules
7
+ * @module {bit-docs/types/plugin} bit-docs-js/bit-docs
10
8
*
11
- * @description Tags, templates, and basic styles for JavaScript.
12
- *
13
- * @param {Object } [bitDocs] The configuration object passed by `bit-docs` at
14
- * runtime.
9
+ * @description Register hooks to add tags, templates, and basic styles useful
10
+ * for documenting JavaScript.
11
+ *
12
+ * @signature `jsPlugin(bitDocs)`
13
+ *
14
+ * @param {Object } bitDocs Configuration object with a `register` method.
15
15
*
16
16
* @body
17
17
*
18
- * This plugin registers onto these hooks:
18
+ * ## Use
19
+ *
20
+ * Registers onto these hooks:
19
21
* - `tags`
20
22
* - `processor`
21
23
* - `html`
22
24
*
23
- * Registering the `tag` hook adds JavaScript-related tags:
24
- * - [bit-docs-js/tags/function @function]
25
+ * ### Tags
26
+ *
27
+ * Registering the `tags` hook adds JavaScript-related tags:
28
+ * - [bit-docs-js/tag/function]
29
+ * - [bit-docs-js/tags/module @module]
30
+ * - [bit-docs-js/tags/option @option]
25
31
* - [bit-docs-js/tags/param @param]
32
+ * - [bit-docs-js/tags/property @property]
33
+ * - [bit-docs-js/tags/prototype @prototype]
34
+ * - [bit-docs-js/tags/return @return]
26
35
* - [bit-docs-js/tags/signature @signature]
27
- * - ...
36
+ * - [bit-docs-js/tags/typedef @typedef]
37
+ *
38
+ * ### Processor
28
39
*
29
40
* Registering the `processor` hook adds a processor for `*.js` files that gets
30
41
* code comments in JavaScript, and processes tags like `@function` and
31
- * `@param` into docObjects that are subsequently added to the docMap.
42
+ * `@param` into [bit-docs/types/docObject]s that are subsequently added to the
43
+ * [bit-docs/types/docMap].
32
44
*
33
- * The processor is also smart enough process regular comments above functions
34
- * that have not explicitly been documented with closure type annotations, and
35
- * extracts basic signature information such as parameters and/or return type.
45
+ * Comments above functions that do not include [bit-docs-js/types/tag]s
46
+ * will still be processed as [bit-docs-js/types/tagBlock]s as the processor
47
+ * extracts basic signature information such as parameters and/or return type
48
+ * from the [bit-docs-js/types/codeLine].
49
+ *
50
+ * ### HTML
36
51
*
37
52
* Registering the `html` hook adds a mustache template used to generate the
38
53
* HTML for the tags added by this plugin.
0 commit comments