Skip to content

Commit d1db1b9

Browse files
committed
adding bit-docs release scripts
1 parent 0a200c8 commit d1db1b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bit-docs.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
var postProcessTags = require("./post-process");
22
var processTags = require("./process-tags");
3-
3+
var _ = require("lodash");
44
module.exports = function(bitDocs){
55
// this makes tags run
66
bitDocs.register("postProcessor", postProcessTags);
77
bitDocs.register("processor", processTags);
8+
bitDocs.handle("tags", function(siteConfig, tags){
9+
siteConfig.tags = _.assign(siteConfig.tags || {}, tags);
10+
});
811
};

0 commit comments

Comments
 (0)