Skip to content

tools,doc: allow page titles to contain inline code

Previously the HTML title would be cut to the first text node only. This PR concats the text value of all the node children of the first heading.

This is currently visible on Modules: module API page:

Currently, on nodejs.org:

<title>Modules:  | Node.js v14.9.0 Documentation</title>

With this PR:

<title>Modules: module API | Node.js v15.0.0 Documentation</title>
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Merge request reports

Loading