summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Early <alexander.early@gmail.com>2016-06-30 17:37:25 -0700
committerAlexander Early <alexander.early@gmail.com>2016-06-30 17:37:25 -0700
commit98f36b4624f9fa953c62bc0b8dea7e1f313fbc2e (patch)
treec0cc6add4c3eadc96bddbcd7e85ea7624a2e5640
parent0e1bdc5c86ff20963c0a91ce725101859b0488fd (diff)
downloadasync-98f36b4624f9fa953c62bc0b8dea7e1f313fbc2e.tar.gz
copy custom script tag into theme
-rw-r--r--support/jsdoc/jsdoc-fix-html.js4
-rw-r--r--support/jsdoc/theme/tmpl/layout.tmpl1
2 files changed, 1 insertions, 4 deletions
diff --git a/support/jsdoc/jsdoc-fix-html.js b/support/jsdoc/jsdoc-fix-html.js
index 3d67884..3892d09 100644
--- a/support/jsdoc/jsdoc-fix-html.js
+++ b/support/jsdoc/jsdoc-fix-html.js
@@ -90,8 +90,6 @@ function combineFakeModules(files, callback) {
function applyPreCheerioFixes(data) {
- var customScript = '<script src="scripts/jsdoc-custom.js"></script>\n';
- var closingBodyTag = '</body>';
var rIncorrectCFText = />ControlFlow</g;
var fixedCFText = '>Control Flow<';
@@ -100,8 +98,6 @@ function applyPreCheerioFixes(data) {
// the heading needs additional padding at the top so it doesn't get cutoff
return data
- // inject the async library onto each page
- .replace(closingBodyTag, customScript+closingBodyTag)
// for JSDoc to work, the module needs to be labelled 'ControlFlow', while
// on the page it should appear as 'Control Flow'
.replace(rIncorrectCFText, fixedCFText)
diff --git a/support/jsdoc/theme/tmpl/layout.tmpl b/support/jsdoc/theme/tmpl/layout.tmpl
index 27b0ce4..5fe2d38 100644
--- a/support/jsdoc/theme/tmpl/layout.tmpl
+++ b/support/jsdoc/theme/tmpl/layout.tmpl
@@ -86,5 +86,6 @@
<script>prettyPrint();</script>
<script src="scripts/linenumber.js"></script>
+<script src="scripts/jsdoc-custom.js"></script>
</body>
</html>