From df2122c00f5724fdd7406cae8df0e74dc273485c Mon Sep 17 00:00:00 2001 From: Florian Kissling Date: Thu, 9 Apr 2015 20:27:45 +0200 Subject: [PATCH] Add anchor.js for pages using the `default` layout. * adds styles for anchor.js (similar to the official Bootstrap docs) * currently results some of the generated links to have a suffix (e. g. examples.html#templating-1) added due to sections having the same ID as the headline copy that we want to link to --- docs/_includes/head.html | 20 +++++++++ docs/_layouts/default.html | 6 +++ docs/vendor/css/anchor.css | 78 ++++++++++++++++++++++++++++++++++++ docs/vendor/js/anchor.min.js | 6 +++ 4 files changed, 110 insertions(+) create mode 100644 docs/vendor/css/anchor.css create mode 100644 docs/vendor/js/anchor.min.js diff --git a/docs/_includes/head.html b/docs/_includes/head.html index 9155095e..039168bf 100644 --- a/docs/_includes/head.html +++ b/docs/_includes/head.html @@ -10,15 +10,35 @@ + + diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index c64b9a22..aac314c5 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -9,6 +9,12 @@ {{ content }} {% include footer.html %} +