doctool: improve the title of pages in doc · nodejs/node@a52b1c0

2 files changed

lines changed

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">

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(