diff --git a/docs/_config.yml b/docs/_config.yml index 3fb15b18fa8..f11a1a2d601 100644 --- a/docs/_config.yml +++ b/docs/_config.yml @@ -20,6 +20,12 @@ defaults: type: pages values: sectionid: blog +- scope: + path: tutorial + type: pages + values: + layout: tutorial + sectionid: tutorial - scope: path: docs type: pages diff --git a/docs/_data/nav_docs.yml b/docs/_data/nav_docs.yml index 2952540aa1f..f736cd84a89 100644 --- a/docs/_data/nav_docs.yml +++ b/docs/_data/nav_docs.yml @@ -1,5 +1,4 @@ -- title: Tutorial -- title: Basic Guides +- title: Quick Start items: - id: installation title: Installation diff --git a/docs/_data/nav_tutorial.yml b/docs/_data/nav_tutorial.yml new file mode 100644 index 00000000000..efa090f0cec --- /dev/null +++ b/docs/_data/nav_tutorial.yml @@ -0,0 +1,71 @@ +- title: Tutorial + items: + - id: tutorial + title: Overview + subitems: + - id: what-were-building + title: What We're Building + href: /react/tutorial/tutorial.html#what-were-building + forceInternal: true + - id: what-is-react + title: What is React? + href: /react/tutorial/tutorial.html#what-is-react + forceInternal: true + - id: getting-started + title: Getting Started + href: /react/tutorial/tutorial.html#getting-started + forceInternal: true + - id: passing-data-through-props + title: Passing Data Through Props + href: /react/tutorial/tutorial.html#passing-data-through-props + forceInternal: true + - id: an-interactive-component + title: An Interactive Component + href: /react/tutorial/tutorial.html#an-interactive-component + forceInternal: true + - id: developer-tools + title: Developer Tools + href: /react/tutorial/tutorial.html#developer-tools + forceInternal: true + - id: lifting-state-up + title: Lifting State Up + href: /react/tutorial/tutorial.html#lifting-state-up + forceInternal: true + subitems: + - id: why-immutability-is-important + title: Why Immutability Is Important + href: /react/tutorial/tutorial.html#why-immutability-is-important + forceInternal: true + - id: functional-components + title: Functional Components + href: /react/tutorial/tutorial.html#functional-components + forceInternal: true + - id: taking-turns + title: Taking Turns + href: /react/tutorial/tutorial.html#taking-turns + forceInternal: true + - id: declaring-a-winner + title: Declaring a Winner + href: /react/tutorial/tutorial.html#declaring-a-winner + forceInternal: true + - id: storing-a-history + title: Storing A History + href: /react/tutorial/tutorial.html#storing-a-history + forceInternal: true + subitems: + - id: showing-the-moves + title: Showing the Moves + href: /react/tutorial/tutorial.html#showing-the-moves + forceInternal: true + - id: keys + title: Keys + href: /react/tutorial/tutorial.html#keys + forceInternal: true + - id: implementing-time-travel + title: Implementing Time Travel + href: /react/tutorial/tutorial.html#implementing-time-travel + forceInternal: true + - id: wrapping-up + title: Wrapping Up + href: /react/tutorial/tutorial.html#wrapping-up + forceInternal: true diff --git a/docs/_includes/nav_tutorial.html b/docs/_includes/nav_tutorial.html new file mode 100644 index 00000000000..2a720cbdd0b --- /dev/null +++ b/docs/_includes/nav_tutorial.html @@ -0,0 +1,24 @@ + diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html index e2ed8e217fa..8bc98537b0f 100644 --- a/docs/_layouts/default.html +++ b/docs/_layouts/default.html @@ -62,13 +62,13 @@