doc,tools: use only one level 1 header per page · nodejs/node@eb6ea85 · GitHub
Skip to content

Commit eb6ea85

Browse files
Trotttargos
authored andcommitted
doc,tools: use only one level 1 header per page
Increment the header levels from markdown files when producing HTML documents. This is both better semantically (as the two h1 headers in current docs are not actually equivalent level semantically--the second belongs below/inside the first) and better for accessibility. (It is valid HTML to have multiple h1 headers in a document, but it can be bad for screen reader experience.) PR-URL: #37839 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Pooja D P <Pooja.D.P@ibm.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
1 parent b51651c commit eb6ea85

2 files changed

Lines changed: 32 additions & 23 deletions

File tree

test/doctool/test-doctool-html.js

Lines changed: 19 additions & 19 deletions

tools/doc/html.js

Lines changed: 13 additions & 4 deletions

0 commit comments

Comments
 (0)