Skip to content

Commit b680eb9

Browse files
yorkieMylesBorins
authored andcommitted
doctool: improve the title of pages in doc
1 parent abefdca commit b680eb9

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__ Manual &amp; 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)