Skip to content

Commit db49383

Browse files
committed
deps: remove pretemplater
1 parent e751ac9 commit db49383

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

tasks/_makeDocs.js

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,10 @@ var fs = require("fs");
22
var doc = "../_doc/yuidoc.json";
33
var docGen = require("./_docgen");
44
var opts = require("browser-sync/lib/cli/opts.start.json");
5-
var pretemplater = require("pretemplater");
65
var marked = require('marked');
76
var _ = require("lodash");
87
_.templateSettings.interpolate = /{:([\s\S]+?):}/g;
98

10-
function getTemplate(name) {
11-
12-
var source = fs.readFileSync("./_src/_tmp/_%s.tmpl.html".replace("%s", name), "utf-8");
13-
var template = pretemplater(source);
14-
return _.template(template);
15-
}
16-
179
var excluded = [
1810
"use"
1911
];
@@ -96,29 +88,6 @@ function previewTweaks(item) {
9688
return item;
9789
}
9890

99-
/**
100-
* Build the markup for each item
101-
* @param combined
102-
* @param item
103-
* @returns {*}
104-
*/
105-
function buildMarkup (combined, item) {
106-
107-
item.snippet = getSnippet(item, "api") || false;
108-
109-
if (!item.description) {
110-
item.description = "";
111-
} else {
112-
item.description = marked(item.description);
113-
}
114-
115-
if (item.params) {
116-
item.params = item.params.map(fixDescription);
117-
}
118-
119-
return combined + getTemplate("api")(item);
120-
}
121-
12291
/**
12392
* @param item
12493
* @returns {*}

0 commit comments

Comments
 (0)