Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
doc: wrap TOC in a <details> tag
PR-URL: #36896 Fixes: #36885 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
- Loading branch information
Showing
with
9 additions
and 9 deletions.
- +2 −2 doc/api_assets/style.css
- +3 −3 doc/template.html
- +4 −4 tools/doc/allhtml.js
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -472,8 +472,8 @@ hr { | ||
| margin: 0 0 1rem; | ||
| } | ||
|
|
||
| #toc > ul { | ||
| margin-top: 1.5rem; | ||
| } | ||
|
|
||
| #toc p { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -55,10 +55,10 @@ <h1>Node.js __VERSION__ Documentation</h1> | ||
| <hr> | ||
| </header> | ||
|
|
||
| <details id="toc" open> | ||
| <summary>Table of Contents</summary> | ||
| __TOC__ | ||
| </details> | ||
|
|
||
| <div id="apicontent"> | ||
| __CONTENT__ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters

