From a52b1c058039135b5cb5eb8544744bb2f968836b Mon Sep 17 00:00:00 2001 From: yorkie Date: Tue, 2 Aug 2016 01:31:28 +0800 Subject: [PATCH] doctool: improve the title of pages in doc PR-URL: https://github.com/nodejs/node/pull/7939 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Rich Trott Reviewed-By: Roman Reiss --- doc/template.html | 2 +- tools/doc/html.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/template.html b/doc/template.html index 71e3a21e1d4d5c..af680645d15080 100644 --- a/doc/template.html +++ b/doc/template.html @@ -2,7 +2,7 @@ - __SECTION__ Node.js __VERSION__ Manual & Documentation + __SECTION__ | Node.js __VERSION__ Documentation diff --git a/tools/doc/html.js b/tools/doc/html.js index 769d601e26c800..75d5f085311601 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(