From b8c7f3cdfd8b034826b80526cee9a573c463d5c1 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) --- _config.yml | 8 ++++---- _includes/nav_docs.html | 6 +++--- _layouts/{cookbook.html => tips.html} | 6 +++--- {cookbook => tips}/01-introduction.md | 8 +++++--- {cookbook => tips}/02-inline-styles.md | 2 +- {cookbook => tips}/03-if-else-in-JSX.md | 2 +- {cookbook => tips}/04-self-closing-tag.md | 2 +- {cookbook => tips}/05-maximum-number-of-jsx-root-nodes.md | 2 +- {cookbook => tips}/06-style-props-value-px.md | 6 +++--- {cookbook => tips}/07-children-props-type.md | 2 +- {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 +- {cookbook => tips}/11-dom-event-listeners.md | 4 ++-- {cookbook => tips}/12-initial-ajax.md | 2 +- {cookbook => tips}/13-false-in-jsx.md | 4 ++-- 16 files changed, 33 insertions(+), 31 deletions(-) rename _layouts/{cookbook.html => tips.html} (73%) rename {cookbook => tips}/01-introduction.md (56%) rename {cookbook => tips}/02-inline-styles.md (97%) rename {cookbook => tips}/03-if-else-in-JSX.md (98%) rename {cookbook => tips}/04-self-closing-tag.md (95%) rename {cookbook => tips}/05-maximum-number-of-jsx-root-nodes.md (97%) rename {cookbook => tips}/06-style-props-value-px.md (85%) rename {cookbook => tips}/07-children-props-type.md (98%) rename {cookbook => tips}/08-controlled-input-null-value.md (87%) rename {cookbook => tips}/09-componentWillReceiveProps-not-triggered-after-mounting.md (87%) rename {cookbook => tips}/10-props-in-getInitialState-as-anti-pattern.md (98%) rename {cookbook => tips}/11-dom-event-listeners.md (87%) rename {cookbook => tips}/12-initial-ajax.md (98%) rename {cookbook => tips}/13-false-in-jsx.md (94%) diff --git a/_config.yml b/_config.yml index 8e13f6d4..8ccf2a0e 100644 --- a/_config.yml +++ b/_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/_includes/nav_docs.html b/_includes/nav_docs.html index 33dae03c..98e1a151 100644 --- a/_includes/nav_docs.html +++ b/_includes/nav_docs.html @@ -26,14 +26,14 @@ {% endfor %} - - {% for section in site.nav_cookbook %} + + {% for section in site.nav_tips %}