From bd535bd51c2f24618a8a8b2990fa9f350955db3b Mon Sep 17 00:00:00 2001 From: Connor McSheffrey Date: Mon, 11 Nov 2013 21:00:53 -0800 Subject: [PATCH] Renamed Cookbook references to tips. Reworded intro (sounded weird because it still referenced cookbooks. Updated some entry ID's (some side nav links didn't match entry permalinks) --- docs/_config.yml | 8 ++++---- docs/_includes/nav_docs.html | 6 +++--- docs/_layouts/{cookbook.html => tips.html} | 6 +++--- docs/{cookbook => tips}/01-introduction.md | 8 +++++--- docs/{cookbook => tips}/02-inline-styles.md | 2 +- docs/{cookbook => tips}/03-if-else-in-JSX.md | 2 +- docs/{cookbook => tips}/04-self-closing-tag.md | 2 +- .../05-maximum-number-of-jsx-root-nodes.md | 2 +- docs/{cookbook => tips}/06-style-props-value-px.md | 6 +++--- docs/{cookbook => tips}/07-children-props-type.md | 2 +- docs/{cookbook => tips}/08-controlled-input-null-value.md | 4 ++-- ...ponentWillReceiveProps-not-triggered-after-mounting.md | 4 ++-- .../10-props-in-getInitialState-as-anti-pattern.md | 2 +- docs/{cookbook => tips}/11-dom-event-listeners.md | 4 ++-- docs/{cookbook => tips}/12-initial-ajax.md | 2 +- docs/{cookbook => tips}/13-false-in-jsx.md | 4 ++-- 16 files changed, 33 insertions(+), 31 deletions(-) rename docs/_layouts/{cookbook.html => tips.html} (73%) rename docs/{cookbook => tips}/01-introduction.md (56%) rename docs/{cookbook => tips}/02-inline-styles.md (97%) rename docs/{cookbook => tips}/03-if-else-in-JSX.md (98%) rename docs/{cookbook => tips}/04-self-closing-tag.md (95%) rename docs/{cookbook => tips}/05-maximum-number-of-jsx-root-nodes.md (97%) rename docs/{cookbook => tips}/06-style-props-value-px.md (85%) rename docs/{cookbook => tips}/07-children-props-type.md (98%) rename docs/{cookbook => tips}/08-controlled-input-null-value.md (87%) rename docs/{cookbook => tips}/09-componentWillReceiveProps-not-triggered-after-mounting.md (87%) rename docs/{cookbook => tips}/10-props-in-getInitialState-as-anti-pattern.md (98%) rename docs/{cookbook => tips}/11-dom-event-listeners.md (87%) rename docs/{cookbook => tips}/12-initial-ajax.md (98%) rename docs/{cookbook => tips}/13-false-in-jsx.md (94%) diff --git a/docs/_config.yml b/docs/_config.yml index 8e13f6d436..8ccf2a0e58 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -69,8 +69,8 @@ nav_docs_sections: title: Event System - id: dom-differences title: DOM Differences -nav_cookbook: -- title: Cookbook +nav_tips: +- title: Tips items: - id: introduction title: Introduction @@ -80,7 +80,7 @@ nav_cookbook: title: If-Else in JSX - id: self-closing-tag title: Self-Closing Tag - - id: jsx-root-node-count + - id: maximum-number-of-jsx-root-nodes title: Maximum Number of JSX Root Nodes - id: style-props-value-px title: Shorthand for Specifying Pixel Values in style props @@ -90,7 +90,7 @@ nav_cookbook: title: Value of null for Controlled Input - id: componentWillReceiveProps-not-triggered-after-mounting title: componentWillReceiveProps Not Triggered After Mounting - - id: props-in-getInitialSate-as-anti-pattern + - id: props-in-getInitialState-as-anti-pattern title: Props in getInitialState Is an Anti-Pattern - id: dom-event-listeners title: DOM Event Listeners in a Component diff --git a/docs/_includes/nav_docs.html b/docs/_includes/nav_docs.html index 33dae03c30..98e1a15197 100644 --- a/docs/_includes/nav_docs.html +++ b/docs/_includes/nav_docs.html @@ -26,14 +26,14 @@ {% endfor %} - - {% for section in site.nav_cookbook %} + + {% for section in site.nav_tips %}