Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Docs #7864

Closed
wants to merge 119 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
f7c9c40
Community tab (#7854)
Oct 3, 2016
03ff219
Merge branch 'master' into new-docs
gaearon Oct 4, 2016
02022cd
Make space for new docs
gaearon Oct 4, 2016
46983cf
Separate old and new docs (#7865)
gaearon Oct 4, 2016
cb862e1
Installation instructions (#7858)
Oct 4, 2016
41c3d9c
Merge branch 'master' into new-docs
gaearon Oct 4, 2016
8fb9394
Tutorial ported from @spicyj's internal wiki to top-level navigation …
ericnakagawa Oct 4, 2016
a2360a9
Fix the conflict
gaearon Oct 4, 2016
3f24afc
fixed coloring for tutorial
ericnakagawa Oct 4, 2016
139b63e
Merge branch 'new-docs' of github.com:facebook/react into new-docs
ericnakagawa Oct 4, 2016
80f015f
Merge branch 'master' into new-docs
gaearon Oct 4, 2016
d19939e
Additional tutorial cleanup
ericnakagawa Oct 4, 2016
d5f561e
Merge branch 'new-docs' of github.com:facebook/react into new-docs
ericnakagawa Oct 4, 2016
c23cf05
Auto-build new-docs on Travis (#7876)
sophiebits Oct 4, 2016
6aff094
Use ES6 imports in ES6 code
gaearon Oct 5, 2016
1d6ab04
Remove numbers from filenames
gaearon Oct 5, 2016
599e0a5
Use fiddle with highlighting
gaearon Oct 5, 2016
7bfab05
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 5, 2016
882d67c
Remove red from blockquotes/notes. (#7883)
hramos Oct 5, 2016
a73c770
JSX Docs: JSX In Depth and React Without JSX (#7878)
Oct 5, 2016
d94cf41
Added section on immutability
ericnakagawa Oct 5, 2016
4bfdaa0
Merging local branch
ericnakagawa Oct 5, 2016
785ef0c
Removed underscores from variable names and updated codepens.
ericnakagawa Oct 5, 2016
5a52760
Add Hello World and Introducing JSX (#7881)
gaearon Oct 5, 2016
3d8c6ac
Merge branch 'master' into new-docs
gaearon Oct 5, 2016
8de0c00
Merge remote-tracking branch 'origin/master' into new-docs
gaearon Oct 5, 2016
1fd7d9a
Mobile layout for docs (#7870)
thymikee Oct 6, 2016
bd3da9b
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 6, 2016
af85ea8
Simplified Save History
ericnakagawa Oct 6, 2016
54c4677
Force removes external link class when forceInternal variable is set
ericnakagawa Oct 6, 2016
e4f90c9
[Website] Add Facebook Open Source footer. (#7871)
hramos Oct 6, 2016
3216a35
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 6, 2016
45d469e
Update default.html
hramos Oct 6, 2016
385d982
Removed helper function
ericnakagawa Oct 6, 2016
4513b41
Small text change in tutorial
ericnakagawa Oct 6, 2016
a8f4aa8
Update "Thinking in react" (#7891)
Oct 6, 2016
b4a97aa
Replace JSFiddle with CodePen (#7894)
hramos Oct 6, 2016
c177433
Update Open Graph metatags to use a blog's excerpt as the description…
hramos Oct 6, 2016
49dee3a
Remove stale videos, reorder videos, update timestamp styling, update…
hramos Oct 6, 2016
18de5b0
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 6, 2016
57cac3c
Removed original moveNumber from state, now calculating from index
ericnakagawa Oct 6, 2016
6168459
Moved Tutorials to second spot on top nav bar
ericnakagawa Oct 6, 2016
b8a7163
Minor mobile layout fix (#7904)
hramos Oct 7, 2016
445badf
Merge
ericnakagawa Oct 7, 2016
7f03db5
Merge pull request #7875 from ericnakagawa/new-docs
ericnakagawa Oct 7, 2016
093930f
Add "Rendering Elements", "Components and Props", "State and Lifecycl…
gaearon Oct 7, 2016
20434b2
Add Handling Events stub
gaearon Oct 7, 2016
8d2f929
Tweak
gaearon Oct 8, 2016
39ac083
Tweak
gaearon Oct 8, 2016
2a4d4dd
fix typo state-lifecycle in new-docs branch (#7921)
rdwrcode Oct 9, 2016
be2321a
Merge branch 'master' into new-docs
gaearon Oct 10, 2016
04d2a4d
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 10, 2016
7314beb
Replace ES2015 with ES6. (#7929)
hramos Oct 10, 2016
fdb126d
Port React, ReactDOM, ReactDOMServer references.
hramos Oct 10, 2016
1590de8
Handling Events (#7918)
Oct 11, 2016
80913c2
Reference docs for React.Component, & "React Without ES6" doc (#7919)
Oct 11, 2016
494569a
Review feedback
hramos Oct 11, 2016
44d11f5
Merge remote-tracking branch 'origin/master' into new-docs
gaearon Oct 11, 2016
be4e261
Remove require() reference.
hramos Oct 11, 2016
1ba4413
Merge branch 'reference' into new-docs
hramos Oct 11, 2016
18e83f3
Merge branch 'new-docs' of github.com:facebook/react into new-docs
hramos Oct 11, 2016
6d5c660
PropTypes guide (#7935)
Oct 11, 2016
7544880
"Composition vs Inheritance" and "Lifting State Up" (#7920)
gaearon Oct 11, 2016
87c9c10
[New Docs] Add PropTypes to React reference API, adjust formatting (#…
hramos Oct 12, 2016
7652274
data-react-id -> data-reactid (#7950)
aweary Oct 12, 2016
a583a8f
[New Docs] Remove entries under Old Docs for content that has been up…
hramos Oct 12, 2016
15c1095
Further explain what React.PureComponent does.
hramos Oct 12, 2016
a68df18
Restore PureRenderMixin in TOC.
hramos Oct 12, 2016
37c6a04
Update ReactTestUtils addon reference.
hramos Oct 12, 2016
3ebd353
Move PureRenderMixin underneath Addons. Clarify sCU behavior.
hramos Oct 12, 2016
30e337a
Merge branch 'pure' into test-utils
hramos Oct 12, 2016
e1da543
Adds - Loops and Conditional Rendering
ericnakagawa Oct 13, 2016
0d16d45
Merge branch 'new-docs' of github.com:facebook/react into new-docs
ericnakagawa Oct 13, 2016
983f940
Update Add-Ons references/guides.
hramos Oct 13, 2016
f960d15
Update Add-Ons list
hramos Oct 13, 2016
83b8039
const for unchanging data, reusing same data from examples, fixed tic…
ericnakagawa Oct 13, 2016
2760e79
Replace Codepen with CodePen (#7970)
ivanzotov Oct 13, 2016
4bd1c1c
Add note on importing to all add-ons.
hramos Oct 13, 2016
05b8ff4
Review feedback
hramos Oct 13, 2016
f4854f6
Context doc (#7954)
Oct 13, 2016
502a16d
[New Docs] Further explain what React.PureComponent does. (#7956)
hramos Oct 14, 2016
f414f08
Remove extra vertical spacing between items in the sidebar (#7973)
ivanzotov Oct 14, 2016
043511d
Fix text size adjust for webkit (#7976)
ivanzotov Oct 14, 2016
8bfbf5a
Fix legacy/deprecated add-on confusion.
hramos Oct 14, 2016
7d2c572
s/ReactLink/LinkedStateMixin/
hramos Oct 14, 2016
dc4db0c
Replace ReactLink with LinkedStateMixin or valueLink as needed.
hramos Oct 14, 2016
721b751
Separate shallow rendering from other test utilities.
hramos Oct 14, 2016
33a81a2
[New Docs] Fix docs grammar (#7967)
ivanzotov Oct 14, 2016
732dbf2
Add clarification to shadowRenderer.render()
hramos Oct 14, 2016
ad078d8
[New Docs] Fix context doc (#7974)
ivanzotov Oct 14, 2016
53542d2
Restore legacy wording.
hramos Oct 14, 2016
9996933
Sort add-ons by legaciness, update import statements, fix whitespace.
hramos Oct 14, 2016
6d45e1e
Refs and the DOM (#7952)
Oct 14, 2016
eac5780
Review feedback
hramos Oct 14, 2016
9d1b406
Optimizing Performance (#7960)
Oct 14, 2016
5425501
Semi-colons and comments
hramos Oct 14, 2016
56ecac5
Merge branch 'test-utils' into new-docs
hramos Oct 14, 2016
4a756ff
[New Docs] Fix image size for tutorial page (#7977)
ivanzotov Oct 14, 2016
bfdcd18
Fix a width for all iframes (#7979)
ivanzotov Oct 14, 2016
aa32f91
Rewrote parts of Lists & Conditional Rendering, added codepen examples
ericnakagawa Oct 15, 2016
9d1c5e4
Fixes, and moving copy around
ericnakagawa Oct 15, 2016
14973d0
Rewording
ericnakagawa Oct 15, 2016
d473a20
Added additional wording for clarity
ericnakagawa Oct 15, 2016
b762759
Event System reference (#7984)
hramos Oct 15, 2016
ee0197f
Merge branch 'master' into new-docs
hramos Oct 17, 2016
0614423
Changed links back to normal
ericnakagawa Oct 17, 2016
fcdf4d1
[New Docs] Link to Reactiflux, Move Footer/Hero to Includes (#7971)
hramos Oct 17, 2016
bab84f0
Fixed multiple issues and took multiple suggestions from @gaearon
ericnakagawa Oct 17, 2016
7287f3e
Fix links for quick start (#8003)
ivanzotov Oct 18, 2016
1d4c1ab
Merge branch 'master' into new-docs
gaearon Oct 18, 2016
9c4106d
Final fixes.
ericnakagawa Oct 18, 2016
89fbf08
[New Docs] "DOM Elements" reference and cleanup (#7983)
Oct 18, 2016
25b3ec8
Forms - includes several codepen examples at bottom.
ericnakagawa Oct 18, 2016
6505c0d
[New Docs] Reconciliation and Web Components docs (#7962)
Oct 18, 2016
cd27671
Formatting fixes.
ericnakagawa Oct 20, 2016
bac4fa5
Merge branch 'new-docs' of github.com:facebook/react into new-docs
ericnakagawa Oct 20, 2016
801d726
Merge pull request #7964 from ericnakagawa/new-docs
ericnakagawa Oct 20, 2016
7e06ea9
Getting new-docs ready for launch (#8027)
Oct 21, 2016
3de5024
Merge branch 'master' into new-docs
gaearon Oct 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ docs/code
docs/_site
docs/.sass-cache
docs/js/*
docs/downloads
docs/downloads/*.zip
docs/vendor/bundle
examples/shared/*.js
examples/**/bundle.js
Expand Down
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ before_install:
script:
- |
if [ "$TEST_TYPE" = build_website ]; then
if [ "$TRAVIS_BRANCH" = "$REACT_WEBSITE_BRANCH" ] && [ "$TRAVIS_PULL_REQUEST" = false ]; then
if [ "$TRAVIS_PULL_REQUEST" = false ]; then
if [ "$TRAVIS_BRANCH" != new-docs ]; then
echo "This code should only run on the new-docs branch. Please revert it."
exit 1
fi
set -e

GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/../react-gh-pages
Expand All @@ -42,7 +46,7 @@ script:
if ! git diff-index --quiet HEAD --; then
git add -A .
git commit -m "Rebuild website"
git push origin gh-pages
git push -f https://[email protected]/reactjs-bot/react.git gh-pages
fi
popd
fi
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ $ cd react/docs
$ bundle exec rake
$ bundle exec rake fetch_remotes
$ bundle exec jekyll serve -w
$ open http://localhost:4000/react/
$ open http://localhost:4000/react/index.html
```

We use [SASS](http://sass-lang.com/) (with [Bourbon](http://bourbon.io/)) for our CSS, and we use JSX to transform some of our JS.
Expand Down
13 changes: 10 additions & 3 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,29 @@ defaults:
type: pages
values:
sectionid: blog
- scope:
path: tutorial
type: pages
values:
layout: tutorial
sectionid: tutorial
- scope:
path: docs
type: pages
values:
layout: docs
sectionid: docs
- scope:
path: tips
path: contributing
type: pages
values:
sectionid: docs
- scope:
path: contributing
path: community
type: pages
values:
sectionid: docs
layout: community
sectionid: community
exclude:
- Gemfile
- Gemfile.lock
Expand Down
14 changes: 14 additions & 0 deletions docs/_data/nav_community.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- title: Community Resources
items:
- id: support
title: Where To Get Support
- id: conferences
title: Conferences
- id: videos
title: Videos
- id: complementary-tools
title: Complementary Tools
href: https://github.com/facebook/react/wiki/Complementary-Tools
- id: examples
title: Examples
href: https://github.com/facebook/react/wiki/Examples
175 changes: 77 additions & 98 deletions docs/_data/nav_docs.yml
Original file line number Diff line number Diff line change
@@ -1,104 +1,83 @@
- title: Quick Start
items:
- id: getting-started
title: Getting Started
- id: tutorial
title: Tutorial
- id: thinking-in-react
title: Thinking in React
- title: Community Resources
- id: installation
title: Installation
- id: hello-world
title: Hello World
- id: introducing-jsx
title: Introducing JSX
- id: rendering-elements
title: Rendering Elements
- id: components-and-props
title: Components and Props
- id: state-and-lifecycle
title: State and Lifecycle
- id: handling-events
title: Handling Events
- id: conditional-rendering
title: Conditional Rendering
- id: lists-and-keys
title: Lists and Keys
- id: forms
title: Forms
- id: lifting-state-up
title: Lifting State Up
- id: composition-vs-inheritance
title: Composition vs Inheritance
- id: thinking-in-react
title: Thinking In React
- title: Advanced Guides
items:
- id: conferences
title: Conferences
- id: videos
title: Videos
- id: complementary-tools
title: Complementary Tools
href: https://github.com/facebook/react/wiki/Complementary-Tools
- id: examples
title: Examples
href: https://github.com/facebook/react/wiki/Examples
- title: Guides
items:
- id: why-react
title: Why React?
- id: displaying-data
title: Displaying Data
subitems:
- id: jsx-in-depth
title: JSX in Depth
- id: jsx-spread
title: JSX Spread Attributes
- id: jsx-gotchas
title: JSX Gotchas
- id: interactivity-and-dynamic-uis
title: Interactivity and Dynamic UIs
- id: multiple-components
title: Multiple Components
- id: reusable-components
title: Reusable Components
- id: transferring-props
title: Transferring Props
- id: forms
title: Forms
- id: working-with-the-browser
title: Working With the Browser
subitems:
- id: more-about-refs
title: Refs to Components
- id: tooling-integration
title: Tooling Integration
subitems:
- id: language-tooling
title: Language Tooling
- id: package-management
title: Package Management
- id: environments
title: Server-side Environments
- id: addons
title: Add-Ons
subitems:
- id: animation
title: Animation
- id: two-way-binding-helpers
title: Two-Way Binding Helpers
- id: test-utils
title: Test Utilities
- id: clone-with-props
title: Cloning Elements
- id: create-fragment
title: Keyed Fragments
- id: update
title: Immutability Helpers
- id: pure-render-mixin
title: PureRenderMixin
- id: perf
title: Performance Tools
- id: shallow-compare
title: Shallow Compare
- id: advanced-performance
title: Advanced Performance
- id: context
title: Context
title: JSX In Depth
- id: typechecking-with-proptypes
title: Typechecking With PropTypes
- id: refs-and-the-dom
title: Refs and the DOM
- id: optimizing-performance
title: Optimizing Performance
- id: react-without-es6
title: React Without ES6
- id: react-without-jsx
title: React Without JSX
- id: reconciliation
title: Reconciliation
- id: context
title: Context
- id: web-components
title: Web Components
- title: Reference
items:
- id: top-level-api
title: Top-Level API
- id: component-api
title: Component API
- id: component-specs
title: Component Specs and Lifecycle
- id: tags-and-attributes
title: Supported Tags and Attributes
- id: events
title: Event System
- id: dom-differences
title: DOM Differences
- id: special-non-dom-attributes
title: Special Non-DOM Attributes
- id: reconciliation
title: Reconciliation
- id: webcomponents
title: Web Components
- id: glossary
title: React (Virtual) DOM Terminology
- 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: addons
title: Add-Ons
subitems:
- id: perf
title: Performance Tools
- id: test-utils
title: Test Utilities
- id: animation
title: Animation
- id: create-fragment
title: Keyed Fragments
- id: update
title: Immutability Helpers
- id: pure-render-mixin
title: PureRenderMixin
- id: shallow-compare
title: Shallow Compare
- id: two-way-binding-helpers
title: Two-way Binding Helpers

38 changes: 0 additions & 38 deletions docs/_data/nav_tips.yml

This file was deleted.

71 changes: 71 additions & 0 deletions docs/_data/nav_tutorial.yml
Original file line number Diff line number Diff line change
@@ -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
Loading