From 3189446036cf06b0e455287958b9e9ba68d74a2c Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Tue, 12 Apr 2016 13:26:21 -0400 Subject: [PATCH] doc: subdivide TOC, add auxiliary links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/6167 Reviewed-By: James M Snell Reviewed-By: Benjamin Gruenbaum Reviewed-By: Robert Jefe Lindstädt --- doc/api/_toc.markdown | 8 ++++++++ doc/api_assets/style.css | 31 ++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/doc/api/_toc.markdown b/doc/api/_toc.markdown index 52d8b94fe43518..2527ad84e2e360 100644 --- a/doc/api/_toc.markdown +++ b/doc/api/_toc.markdown @@ -2,6 +2,9 @@ @// point at the new location. * [About these Docs](documentation.html) * [Usage & Example](synopsis.html) + +
+ * [Assertion Testing](assert.html) * [Buffer](buffer.html) * [C/C++ Addons](addons.html) @@ -39,3 +42,8 @@ * [V8](v8.html) * [VM](vm.html) * [ZLIB](zlib.html) + +
+ +* [GitHub Repo & Issue Tracker](https://github.com/nodejs/node) +* [Mailing List](http://groups.google.com/group/nodejs) diff --git a/doc/api_assets/style.css b/doc/api_assets/style.css index 56dbb699ca095d..e375e5cd27405c 100644 --- a/doc/api_assets/style.css +++ b/doc/api_assets/style.css @@ -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; @@ -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; @@ -351,10 +363,22 @@ 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; @@ -362,6 +386,11 @@ a code { font-size: .8em; } +#column2 .line { + margin: 0 .5em; + background-color: #707070; +} + #column2 ul li:last-child { margin-bottom: 0; }