diff --git a/content/docs/reference-dom-elements.md b/content/api/dom-elements.md similarity index 99% rename from content/docs/reference-dom-elements.md rename to content/api/dom-elements.md index fb010ca61da..81c0dbf6401 100644 --- a/content/docs/reference-dom-elements.md +++ b/content/api/dom-elements.md @@ -3,8 +3,9 @@ id: dom-elements title: DOM Elements layout: docs category: Reference -permalink: docs/dom-elements.html +permalink: api/dom-elements.html redirect_from: + - "docs/dom-elements.html" - "docs/tags-and-attributes.html" - "docs/dom-differences.html" - "docs/special-non-dom-attributes.html" diff --git a/content/docs/reference-events.md b/content/api/events.md similarity index 99% rename from content/docs/reference-events.md rename to content/api/events.md index 828b63917e3..d90d3ec9362 100644 --- a/content/docs/reference-events.md +++ b/content/api/events.md @@ -1,9 +1,11 @@ --- id: events title: SyntheticEvent -permalink: docs/events.html +permalink: api/events.html layout: docs category: Reference +redirect_from: + - "docs/events.html" --- This reference guide documents the `SyntheticEvent` wrapper that forms part of React's Event System. See the [Handling Events](/docs/handling-events.html) guide to learn more. diff --git a/content/docs/reference-glossary.md b/content/api/glossary.md similarity index 99% rename from content/docs/reference-glossary.md rename to content/api/glossary.md index 0cbac1981ce..63bf61e3621 100644 --- a/content/docs/reference-glossary.md +++ b/content/api/glossary.md @@ -3,8 +3,9 @@ id: glossary title: Glossary of React Terms layout: docs category: Reference -permalink: docs/glossary.html - +permalink: api/glossary.html +redirect_from: + - "docs/glossary.html" --- ## Single-page Application diff --git a/content/docs/reference-javascript-environment-requirements.md b/content/api/javascript-environment-requirements.md similarity index 90% rename from content/docs/reference-javascript-environment-requirements.md rename to content/api/javascript-environment-requirements.md index 398266425cd..ac59f74742e 100644 --- a/content/docs/reference-javascript-environment-requirements.md +++ b/content/api/javascript-environment-requirements.md @@ -3,7 +3,9 @@ id: javascript-environment-requirements title: JavaScript Environment Requirements layout: docs category: Reference -permalink: docs/javascript-environment-requirements.html +permalink: api/javascript-environment-requirements.html +redirect_from: + - "docs/javascript-environment-requirements.html" --- React 16 depends on the collection types [Map](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) and [Set](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set). If you support older browsers and devices which may not yet provide these natively (e.g. IE < 11), consider including a global polyfill in your bundled application, such as [core-js](https://github.com/zloirock/core-js) or [babel-polyfill](https://babeljs.io/docs/usage/polyfill/). diff --git a/content/api/nav.yml b/content/api/nav.yml new file mode 100644 index 00000000000..99f70ed7f2a --- /dev/null +++ b/content/api/nav.yml @@ -0,0 +1,25 @@ +- title: Reference + items: + - id: react-api + title: React + subitems: + - id: react-component + title: React.Component + - id: react-dom + title: ReactDOM + - id: react-dom-server + title: ReactDOMServer + - id: dom-elements + title: DOM Elements + - id: events + title: SyntheticEvent + - id: test-utils + title: Test Utilities + - id: shallow-renderer + title: Shallow Renderer + - id: test-renderer + title: Test Renderer + - id: javascript-environment-requirements + title: JS Environment Requirements + - id: glossary + title: Glossary \ No newline at end of file diff --git a/content/docs/reference-pure-render-mixin.md b/content/api/pure-render-mixin.md similarity index 95% rename from content/docs/reference-pure-render-mixin.md rename to content/api/pure-render-mixin.md index 6da08e31b25..4d5f954d4b3 100644 --- a/content/docs/reference-pure-render-mixin.md +++ b/content/api/pure-render-mixin.md @@ -3,7 +3,9 @@ id: pure-render-mixin title: PureRenderMixin layout: docs category: Reference -permalink: docs/pure-render-mixin.html +permalink: api/pure-render-mixin.html +redirect_from: + - "docs/pure-render-mixin.html" --- > Note diff --git a/content/docs/reference-react-component.md b/content/api/react-component.md similarity index 99% rename from content/docs/reference-react-component.md rename to content/api/react-component.md index 153b0a62fca..a1abd380a38 100644 --- a/content/docs/reference-react-component.md +++ b/content/api/react-component.md @@ -3,8 +3,9 @@ id: react-component title: React.Component layout: docs category: Reference -permalink: docs/react-component.html +permalink: api/react-component.html redirect_from: + - "docs/react-component.html" - "docs/component-api.html" - "docs/component-specs.html" - "docs/component-specs-ko-KR.html" diff --git a/content/docs/reference-react-dom-server.md b/content/api/react-dom-server.md similarity index 98% rename from content/docs/reference-react-dom-server.md rename to content/api/react-dom-server.md index 4db8f492983..3a9df3b801a 100644 --- a/content/docs/reference-react-dom-server.md +++ b/content/api/react-dom-server.md @@ -3,7 +3,9 @@ id: react-dom-server title: ReactDOMServer layout: docs category: Reference -permalink: docs/react-dom-server.html +permalink: api/react-dom-server.html +redirect_from: + - "docs/react-dom-server.html" --- The `ReactDOMServer` object enables you to render components to static markup. Typically, it's used on a Node server: diff --git a/content/docs/reference-react-dom.md b/content/api/react-dom.md similarity index 98% rename from content/docs/reference-react-dom.md rename to content/api/react-dom.md index 319e395ba82..86feeae1456 100644 --- a/content/docs/reference-react-dom.md +++ b/content/api/react-dom.md @@ -3,7 +3,9 @@ id: react-dom title: ReactDOM layout: docs category: Reference -permalink: docs/react-dom.html +permalink: api/react-dom.html +redirect_from: + - "docs/react-dom.html" --- If you load React from a `