summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authoryorkie <yorkiefixer@gmail.com>2016-08-02 01:31:28 +0800
committercjihrig <cjihrig@gmail.com>2016-08-10 12:39:18 -0400
commit27f92efaeecda28e762ab57bc5fe966069cdb9dc (patch)
tree4959dbb1037323fca3ff4d679b4c3d9b5f28986e /tools
parent295d1ea016c4d66322a9c2fd6540fea3df19b8a6 (diff)
downloadnode-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.js2
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(