From 3a72a9d1109e995b9c4de70f260ac3b5ac8f73b9 Mon Sep 17 00:00:00 2001 From: Antoine Gourlay Date: Mon, 22 Sep 2014 14:29:32 +0200 Subject: spec: generated TOC with linkable headers This adds a table of contents to the spec, with a way to get the link of a header on hover (like on GitHub) and a "return to top" small icon at the end of each section. Jekyll generates the H1-level table of contents, and then the current one is expended using jQuery all the way down to H5 titles. Examples and H6 headers are ignored. GitHub's (MIT licensed) octicons are used for nice "link" and "up" icons. --- spec/_layouts/default.yml | 32 ++++- spec/public/octicons/LICENSE.txt | 9 ++ spec/public/octicons/octicons.css | 235 +++++++++++++++++++++++++++++++++++++ spec/public/octicons/octicons.eot | Bin 0 -> 31440 bytes spec/public/octicons/octicons.svg | 198 +++++++++++++++++++++++++++++++ spec/public/octicons/octicons.ttf | Bin 0 -> 31272 bytes spec/public/octicons/octicons.woff | Bin 0 -> 17492 bytes spec/public/scripts/navigation.js | 70 +++++++++++ spec/public/stylesheets/screen.css | 78 +++++++++++- 9 files changed, 615 insertions(+), 7 deletions(-) create mode 100644 spec/public/octicons/LICENSE.txt create mode 100644 spec/public/octicons/octicons.css create mode 100644 spec/public/octicons/octicons.eot create mode 100644 spec/public/octicons/octicons.svg create mode 100644 spec/public/octicons/octicons.ttf create mode 100644 spec/public/octicons/octicons.woff create mode 100644 spec/public/scripts/navigation.js diff --git a/spec/_layouts/default.yml b/spec/_layouts/default.yml index f78232f461..fbbab3a1a0 100644 --- a/spec/_layouts/default.yml +++ b/spec/_layouts/default.yml @@ -14,7 +14,9 @@ + +