From b680eb99ade70115b22df603e50bc95d4ae227f2 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 --- 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 71e3a21e1d..f3edaef72d 100644 --- a/doc/template.html +++ b/doc/template.html @@ -2,7 +2,7 @@ - __SECTION__ Node.js __VERSION__ Manual & Documentation + __SECTION__ | Node.js __VERSION__ Manual & Documentation 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(