From b38bbde2fe3fe9ec4b50677d465b533dbfef213a Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Thu, 14 Jul 2016 20:37:28 +0100 Subject: [PATCH] Add Design Principles to the docs (#7282) --- docs/_data/nav_contributing.yml | 4 + docs/_includes/nav_docs.html | 14 +++ docs/_layouts/contributing.html | 23 ++++ docs/_layouts/default.html | 2 +- docs/contributing/design-principles.md | 154 +++++++++++++++++++++++++ 5 files changed, 196 insertions(+), 1 deletion(-) create mode 100644 docs/_data/nav_contributing.yml create mode 100644 docs/_layouts/contributing.html create mode 100644 docs/contributing/design-principles.md diff --git a/docs/_data/nav_contributing.yml b/docs/_data/nav_contributing.yml new file mode 100644 index 0000000000..b1dcc5c80b --- /dev/null +++ b/docs/_data/nav_contributing.yml @@ -0,0 +1,4 @@ +- title: Contributing + items: + - id: design-principles + title: Design Principles diff --git a/docs/_includes/nav_docs.html b/docs/_includes/nav_docs.html index b3e8a277f5..560170606d 100644 --- a/docs/_includes/nav_docs.html +++ b/docs/_includes/nav_docs.html @@ -35,4 +35,18 @@ {% endfor %} + + + {% for section in site.data.nav_contributing %} + + {% endfor %} diff --git a/docs/_layouts/contributing.html b/docs/_layouts/contributing.html new file mode 100644 index 0000000000..fc5bfbadae --- /dev/null +++ b/docs/_layouts/contributing.html @@ -0,0 +1,23 @@ +--- +layout: default +sectionid: contributing +--- + +
+ {% include nav_docs.html %} + +
+

{{ page.title }}

+
{{ page.description }}
+ {{ content }} + +
+ {% if page.prev %} + ← Prev + {% endif %} + {% if page.next %} + Next → + {% endif %} +
+
+
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index a503c5f8b3..d42b8b1572 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -50,7 +50,7 @@ React