Skip to content

Commit a52b1c0

Browse files
yorkiejasnell
authored andcommitted
doctool: improve the title of pages in doc
PR-URL: #7939 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Roman Reiss <[email protected]>
1 parent cc18937 commit a52b1c0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/template.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="utf-8">
5-
<title>__SECTION__ Node.js __VERSION__ Manual &amp; Documentation</title>
5+
<title>__SECTION__ | Node.js __VERSION__ Documentation</title>
66
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic">
77
<link rel="stylesheet" href="assets/style.css">
88
<link rel="stylesheet" href="assets/sh.css">

tools/doc/html.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function render(opts, cb) {
118118

119119
template = template.replace(/__ID__/g, id);
120120
template = template.replace(/__FILENAME__/g, filename);
121-
template = template.replace(/__SECTION__/g, section);
121+
template = template.replace(/__SECTION__/g, section || 'Index');
122122
template = template.replace(/__VERSION__/g, nodeVersion);
123123
template = template.replace(/__TOC__/g, toc);
124124
template = template.replace(

0 commit comments

Comments
 (0)