summaryrefslogtreecommitdiff
path: root/support/jsdoc/jsdoc-fix-html.js
diff options
context:
space:
mode:
authorHubert Argasinski <argasinski.hubert@gmail.com>2016-12-11 01:34:03 -0500
committerHubert Argasinski <argasinski.hubert@gmail.com>2016-12-11 01:34:03 -0500
commitef9c44518a6959bc4431ba966abd55a839bc4d63 (patch)
tree5a1218eedbb36ca527c3fc20dce0c6fa667e182b /support/jsdoc/jsdoc-fix-html.js
parent57b8db8bd92914fc56fd2b22ba060dcca6f8b7ad (diff)
downloadasync-ef9c44518a6959bc4431ba966abd55a839bc4d63.tar.gz
docs: added searching aliases (see #1339)
Diffstat (limited to 'support/jsdoc/jsdoc-fix-html.js')
-rw-r--r--support/jsdoc/jsdoc-fix-html.js29
1 files changed, 1 insertions, 28 deletions
diff --git a/support/jsdoc/jsdoc-fix-html.js b/support/jsdoc/jsdoc-fix-html.js
index 067a212..15234a0 100644
--- a/support/jsdoc/jsdoc-fix-html.js
+++ b/support/jsdoc/jsdoc-fix-html.js
@@ -42,29 +42,6 @@ function extractModuleFiles(files) {
});
}
-function getSearchableInfo($page, callback) {
- var $sourceLinks = $page.find('a[href$=".js.html"]');
- var sourceFiles = $sourceLinks.map(function() {
- return $(this).attr('href');
- }).toArray().sort();
-
- var $methodLinks = $page.find('nav').find('a');
- var methods = $methodLinks.map(function() {
- var methodName = $(this).text();
- return (methodName === 'Home' ? null : methodName);
- }).toArray().sort();
-
- fs.mkdirsSync(path.join(docsDir, 'data'));
- async.parallel([
- function(fileCallback) {
- fs.writeJson(path.join(docsDir, 'data/sourceFiles.json'), sourceFiles, fileCallback);
- },
- function(fileCallback) {
- fs.writeJson(path.join(docsDir, 'data/methodNames.json'), methods, fileCallback);
- }
- ], callback);
-}
-
function combineFakeModules(files, callback) {
var moduleFiles = extractModuleFiles(files);
@@ -86,11 +63,7 @@ function combineFakeModules(files, callback) {
});
}, function(err) {
if (err) return callback(err);
-
- getSearchableInfo($mainPage, function(err) {
- if (err) return callback(err);
- generateHTMLFile(path.join(docsDir, docFilename), $mainPage, callback);
- });
+ generateHTMLFile(path.join(docsDir, docFilename), $mainPage, callback);
});
});
}