From 118bb6ca929c573f641b8e78a7eb49b708ce0de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20O=E2=80=99Shannessy?= Date: Tue, 16 Jul 2013 17:24:41 -0700 Subject: [PATCH] Autogen the docs nav This is still the same amount of duplication, except way easier to parse. Docs nav now lives in `_config.yml` and you must restart jekyll to see changes to that list (since config is only read at jekyll launch) --- _config.yml | 36 +++++++++++++++++++++++++++++++ _css/react.scss | 3 +++ _includes/nav_docs.html | 47 ++++++++++++++++++++++------------------- 3 files changed, 64 insertions(+), 22 deletions(-) diff --git a/_config.yml b/_config.yml index 1a5d79860..2732bd710 100644 --- a/_config.yml +++ b/_config.yml @@ -16,3 +16,39 @@ markdown: redcarpet react_version: 0.4.0a description: A JavaScript library for building user interfaces relative_permalinks: true + +nav_docs_sections: +- title: Quick Start + items: + - id: getting-started + title: Getting Started + - id: tutorial + title: Tutorial +- title: Guides + items: + - id: why-react + title: Why React? + - id: displaying-data + title: Displaying Data + subitems: + - id: jsx-in-depth + title: JSX in Depth + - id: jsx-gotchas + title: JSX Gotchas + - id: interactivity-and-dynamic-uis + title: Interactivity and Dynamic UIs + - id: multiple-components + title: Multiple Components + - id: reusable-components + title: Reusable Components + - id: forms + title: Forms + - id: working-with-the-browser + title: Working With the Browser + subitems: + - id: more-about-refs + title: More About Refs + - id: tooling-integration + title: Tooling integration + - id: reference + title: Reference diff --git a/_css/react.scss b/_css/react.scss index 971701ed8..68bfe87e8 100644 --- a/_css/react.scss +++ b/_css/react.scss @@ -206,6 +206,9 @@ li { list-style: none; margin: 0; } + ul ul { + margin-left: 20px; + } li { margin: 0; } diff --git a/_includes/nav_docs.html b/_includes/nav_docs.html index 98bcd4fd9..e71ece3cb 100644 --- a/_includes/nav_docs.html +++ b/_includes/nav_docs.html @@ -1,24 +1,27 @@