Skip to content

Commit eadb7e5

Browse files
Fishrock123Myles Borins
authored and
Myles Borins
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 107839c commit eadb7e5

File tree

2 files changed

+38
-1
lines changed

2 files changed

+38
-1
lines changed

doc/api/_toc.markdown

+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
@@ -58,6 +58,12 @@ em code {
5858
font-size: .8em;
5959
}
6060

61+
.line {
62+
width: calc(100% - 1em);
63+
display: block;
64+
padding-bottom: 1px;
65+
}
66+
6167
.api_stability {
6268
color: white !important;
6369
margin: 0 0 1em 0;
@@ -173,6 +179,12 @@ header h1 {
173179
padding-top: 1em;
174180
}
175181

182+
#apicontent .line {
183+
width: calc(50% - 1em);
184+
margin: 1em 1em .95em;
185+
background-color: #ccc;
186+
}
187+
176188
#toc + h1 {
177189
margin-top: 1em;
178190
padding-top: 0;
@@ -351,17 +363,34 @@ a code {
351363

352364
#column2 ul {
353365
list-style: none;
354-
margin: 1.25em 0;
366+
margin: .9em 0 .5em;
355367
background: #333;
356368
}
357369

370+
#column2 > :first-child {
371+
margin: 1.25em 1em;
372+
}
373+
374+
#column2 > ul:nth-child(2) {
375+
margin: 1.25em 0 .5em;
376+
}
377+
378+
#column2 > ul:last-child {
379+
margin: .9em 0 1.25em;
380+
}
381+
358382
#column2 ul li {
359383
padding-left: 1.4em;
360384
margin-bottom: .5em;
361385
padding-bottom: .5em;
362386
font-size: .8em;
363387
}
364388

389+
#column2 .line {
390+
margin: 0 .5em;
391+
background-color: #707070;
392+
}
393+
365394
#column2 ul li:last-child {
366395
margin-bottom: 0;
367396
}

0 commit comments

Comments
 (0)