Skip to content

Commit fc0fbf1

Browse files
committed
doc: subdivide TOC, add auxiliary links
PR-URL: #6167 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Benjamin Gruenbaum <[email protected]> Reviewed-By: Robert Jefe Lindstädt <[email protected]>
1 parent 150dd36 commit fc0fbf1

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

doc/api/_toc.md

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
@// point at the new location.
33
* [About these Docs](documentation.html)
44
* [Usage & Example](synopsis.html)
5+
6+
<div class="line"></div>
7+
58
* [Assertion Testing](assert.html)
69
* [Buffer](buffer.html)
710
* [C/C++ Addons](addons.html)
@@ -39,3 +42,8 @@
3942
* [V8](v8.html)
4043
* [VM](vm.html)
4144
* [ZLIB](zlib.html)
45+
46+
<div class="line"></div>
47+
48+
* [GitHub Repo & Issue Tracker](https://github.com/nodejs/node)
49+
* [Mailing List](http://groups.google.com/group/nodejs)

doc/api_assets/style.css

+30-1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ em code {
9292
font-size: .8em;
9393
}
9494

95+
.line {
96+
width: calc(100% - 1em);
97+
display: block;
98+
padding-bottom: 1px;
99+
}
100+
95101
.api_stability {
96102
color: white !important;
97103
margin: 0 0 1em 0;
@@ -207,6 +213,12 @@ header h1 {
207213
padding-top: 1em;
208214
}
209215

216+
#apicontent .line {
217+
width: calc(50% - 1em);
218+
margin: 1em 1em .95em;
219+
background-color: #ccc;
220+
}
221+
210222
#toc + h1 {
211223
margin-top: 1em;
212224
padding-top: 0;
@@ -388,17 +400,34 @@ a code {
388400

389401
#column2 ul {
390402
list-style: none;
391-
margin: 1.25em 0;
403+
margin: .9em 0 .5em;
392404
background: #333;
393405
}
394406

407+
#column2 > :first-child {
408+
margin: 1.25em 1em;
409+
}
410+
411+
#column2 > ul:nth-child(2) {
412+
margin: 1.25em 0 .5em;
413+
}
414+
415+
#column2 > ul:last-child {
416+
margin: .9em 0 1.25em;
417+
}
418+
395419
#column2 ul li {
396420
padding-left: 1.4em;
397421
margin-bottom: .5em;
398422
padding-bottom: .5em;
399423
font-size: .8em;
400424
}
401425

426+
#column2 .line {
427+
margin: 0 .5em;
428+
background-color: #707070;
429+
}
430+
402431
#column2 ul li:last-child {
403432
margin-bottom: 0;
404433
}

0 commit comments

Comments
 (0)