From 7dca24cd6ec6a7533ae0372ca3169a6ff7a35888 Mon Sep 17 00:00:00 2001 From: Alex Wolfe Date: Mon, 13 Apr 2015 07:29:40 -0700 Subject: [PATCH] sub nav --- public/_includes/_docs-nav.jade | 7 +++++++ public/docs/js/latest/api/_data.json | 6 ++++++ public/docs/js/latest/api/annotations.jade | 1 + 3 files changed, 14 insertions(+) create mode 100644 public/docs/js/latest/api/_data.json create mode 100644 public/docs/js/latest/api/annotations.jade diff --git a/public/_includes/_docs-nav.jade b/public/_includes/_docs-nav.jade index afc4cacb13..2deb1268a0 100644 --- a/public/_includes/_docs-nav.jade +++ b/public/_includes/_docs-nav.jade @@ -12,3 +12,10 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav selected = current.path[3] == slug ? 'is-selected':'' li #{name} + + if selected + ul + for page, slug in public.docs[current.path[1]][current.path[2]][current.path[3]]._data + name = page.menuTitle || page.title + selected = current.path[4] == slug ? 'is-selected':'' + li #{slug} diff --git a/public/docs/js/latest/api/_data.json b/public/docs/js/latest/api/_data.json new file mode 100644 index 0000000000..c7bab4d51a --- /dev/null +++ b/public/docs/js/latest/api/_data.json @@ -0,0 +1,6 @@ +{ + "annotations": { + "icon": "query-builder", + "title": "Annotations" + } +} diff --git a/public/docs/js/latest/api/annotations.jade b/public/docs/js/latest/api/annotations.jade new file mode 100644 index 0000000000..6abfd1cc3d --- /dev/null +++ b/public/docs/js/latest/api/annotations.jade @@ -0,0 +1 @@ +h1 annotations home \ No newline at end of file