-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbit-docs.js
More file actions
34 lines (30 loc) · 843 Bytes
/
bit-docs.js
File metadata and controls
34 lines (30 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var tags = require("./tags");
/**
* @parent plugins
* @module {function} bit-docs-html-highlight-line
* @group bit-docs-html-highlight-line/tags tags
* @group bit-docs-html-highlight-line/static static
*
* @description Adds a `@highlight` tag. Needs to be used after [bit-docs-prettify].
*
* @body
*
* This plugin registers onto these hooks:
* - `tags`
* - `html`
*
* Registering the `tags` hook adds the
* [bit-docs-html-highlight-line/tags/highlight] tag.
*
* Registering the `html` hook adds a static JavaScript file used to do the
* highlighting [bit-docs-html-highlight-line/highlight-line.js].
*/
module.exports = function(bitDocs){
var pkg = require("./package.json");
var deps = {};
deps[pkg.name] = pkg.version;
bitDocs.register("html", {
dependencies: deps
});
bitDocs.register("tags", tags);
};