diff options
author | yorkie <yorkiefixer@gmail.com> | 2016-08-02 01:31:28 +0800 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2016-08-10 12:39:18 -0400 |
commit | 27f92efaeecda28e762ab57bc5fe966069cdb9dc (patch) | |
tree | 4959dbb1037323fca3ff4d679b4c3d9b5f28986e /tools | |
parent | 295d1ea016c4d66322a9c2fd6540fea3df19b8a6 (diff) | |
download | node-new-27f92efaeecda28e762ab57bc5fe966069cdb9dc.tar.gz |
doctool: improve the title of pages in doc
PR-URL: https://github.com/nodejs/node/pull/7939
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/html.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/doc/html.js b/tools/doc/html.js index 769d601e26..75d5f08531 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -118,7 +118,7 @@ function render(opts, cb) { template = template.replace(/__ID__/g, id); template = template.replace(/__FILENAME__/g, filename); - template = template.replace(/__SECTION__/g, section); + template = template.replace(/__SECTION__/g, section || 'Index'); template = template.replace(/__VERSION__/g, nodeVersion); template = template.replace(/__TOC__/g, toc); template = template.replace( |