diff options
-rw-r--r-- | support/jsdoc/jsdoc-custom.css | 12 | ||||
-rw-r--r-- | support/jsdoc/jsdoc-fix-html.js | 4 | ||||
-rw-r--r-- | support/jsdoc/navbar.html | 6 |
3 files changed, 17 insertions, 5 deletions
diff --git a/support/jsdoc/jsdoc-custom.css b/support/jsdoc/jsdoc-custom.css index a87a406..9cc2d3f 100644 --- a/support/jsdoc/jsdoc-custom.css +++ b/support/jsdoc/jsdoc-custom.css @@ -21,11 +21,13 @@ body { } body nav { + float: none; position: fixed; top: 50px; + left: 0px; + bottom: 0px; padding-left: 12px; overflow-y: auto; - height: calc(100% - 50px); } /* fix bootstrap's styling */ @@ -38,6 +40,14 @@ footer { margin-left: 0px; } +.navbar-brand { + padding: 5px; +} + +.navbar-brand img { + height: 40px; +} + #main { position: fixed; float: none; diff --git a/support/jsdoc/jsdoc-fix-html.js b/support/jsdoc/jsdoc-fix-html.js index bf7f6eb..667d869 100644 --- a/support/jsdoc/jsdoc-fix-html.js +++ b/support/jsdoc/jsdoc-fix-html.js @@ -6,7 +6,6 @@ var $ = require('cheerio'); var _ = require('lodash'); var docsDir = path.join(__dirname, '../../docs'); - var pageTitle = 'Methods:'; var docFilename = 'docs.html'; @@ -18,7 +17,6 @@ var HTMLFileBegin = '<!DOCTYPE html>\n<html lang="en">\n<head>\n'; var HTMLFileHeadBodyJoin = '</head>\n<body>'; var HTMLFileEnd = '</body>'; - var additionalFooterText = ' Documentation has been modified from the original. ' + ' For more information, please see the <a href="https://github.com/caolan/async">async</a> repository.'; @@ -184,6 +182,8 @@ function fixModuleLinks(files, callback) { fs.copySync(path.join(__dirname, '../../dist/async.js'), path.join(docsDir, 'scripts/async.js'), { clobber: true }); fs.copySync(path.join(__dirname, './jsdoc-custom.js'), path.join(docsDir, 'scripts/jsdoc-custom.js'), { clobber: true }); fs.copySync(path.join(__dirname, './jsdoc-custom.css'), path.join(docsDir, 'styles/jsdoc-custom.css'), { clobber: true }); +fs.copySync(path.join(__dirname, '..', '..', 'logo', 'favicon.ico'), path.join(docsDir, 'favicon.ico'), { clobber: true }); +fs.copySync(path.join(__dirname, '..', '..', 'logo', 'async-logo.svg'), path.join(docsDir, 'img', 'async-logo.svg'), { clobber: true }); fs.readdir(docsDir, function(err, files) { if (err) { diff --git a/support/jsdoc/navbar.html b/support/jsdoc/navbar.html index e23b12e..86e2792 100644 --- a/support/jsdoc/navbar.html +++ b/support/jsdoc/navbar.html @@ -1,6 +1,8 @@ <div class="navbar navbar-default navbar-fixed-top"> <div class="navbar-header"> - <a class="navbar-brand" href="#">Async.js</a> + <a class="navbar-brand" href="#"> + <img src="img/async-logo.svg" alt="Async.js"></img> + </a> </div> <ul class="nav navbar-nav"> <li id="version-dropdown" class="dropdown"> @@ -25,4 +27,4 @@ </div> </form> </ul> -</div>
\ No newline at end of file +</div> |