Skip to content

Commit

Permalink
doc: subdivide TOC, add auxiliary links
Browse files Browse the repository at this point in the history
PR-URL: #6167
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Robert Jefe Lindstädt <robert.lindstaedt@gmail.com>
  • Loading branch information
Fishrock123 authored and Myles Borins committed Jun 2, 2016
1 parent fb14bc9 commit 3001f88
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
8 changes: 8 additions & 0 deletions doc/api/_toc.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
@// point at the new location.
* [About these Docs](documentation.html)
* [Usage & Example](synopsis.html)

<div class="line"></div>

* [Assertion Testing](assert.html)
* [Buffer](buffer.html)
* [C/C++ Addons](addons.html)
Expand Down Expand Up @@ -39,3 +42,8 @@
* [V8](v8.html)
* [VM](vm.html)
* [ZLIB](zlib.html)

<div class="line"></div>

* [GitHub Repo & Issue Tracker](https://github.com/nodejs/node)
* [Mailing List](http://groups.google.com/group/nodejs)
31 changes: 30 additions & 1 deletion doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ em code {
font-size: .8em;
}

.line {
width: calc(100% - 1em);
display: block;
padding-bottom: 1px;
}

.api_stability {
color: white !important;
margin: 0 0 1em 0;
Expand Down Expand Up @@ -173,6 +179,12 @@ header h1 {
padding-top: 1em;
}

#apicontent .line {
width: calc(50% - 1em);
margin: 1em 1em .95em;
background-color: #ccc;
}

#toc + h1 {
margin-top: 1em;
padding-top: 0;
Expand Down Expand Up @@ -351,17 +363,34 @@ a code {

#column2 ul {
list-style: none;
margin: 1.25em 0;
margin: .9em 0 .5em;
background: #333;
}

#column2 > :first-child {
margin: 1.25em 1em;
}

#column2 > ul:nth-child(2) {
margin: 1.25em 0 .5em;
}

#column2 > ul:last-child {
margin: .9em 0 1.25em;
}

#column2 ul li {
padding-left: 1.4em;
margin-bottom: .5em;
padding-bottom: .5em;
font-size: .8em;
}

#column2 .line {
margin: 0 .5em;
background-color: #707070;
}

#column2 ul li:last-child {
margin-bottom: 0;
}
Expand Down

0 comments on commit 3001f88

Please sign in to comment.