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

Add new docs website #10896

Merged
merged 232 commits into from
Sep 28, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
232 commits
Select commit Hold shift + click to select a range
d377e54
Initial stubbing
Jun 30, 2017
e5534d6
Initial Gatsby check-in
Jun 30, 2017
5c43f9e
Added css and templates for new docs
joecritch Jun 30, 2017
fa50b66
Merge pull request #2 from joecritch/gatsby
bvaughn Jun 30, 2017
e009f3d
Removed .ruby-version
Jun 30, 2017
393deb6
Adding layout from mock site
Jun 30, 2017
06365e0
Prettier-format code in www
Jun 30, 2017
129766a
Renamed article template
Jun 30, 2017
0fed0ef
Initial stab at article template, no data yet
Jun 30, 2017
f4be0dc
Stashing to share with Kyle
Jun 30, 2017
0349931
Stashing for Kyle
Jun 30, 2017
bb39eb7
Typekit
Jun 30, 2017
9ecfe1c
link to hello-world article
Jul 1, 2017
890f5fe
Initial syntax highlighting styles
Jul 3, 2017
4ab5788
Tweaked home page example code a bit
Jul 3, 2017
ce38951
added sidebar.js component, and tweaked traverse_nav
joecritch Jul 3, 2017
83a1e84
Added yarn.lock file
Jul 3, 2017
e9c028e
www README
Jul 4, 2017
5244827
Hacked in footer nav and sidebar nav (for now)
Jul 4, 2017
6e22c97
Prettier on entire www dir, including configs
Jul 4, 2017
9b1e126
fixed sticky nav padding
joecritch Jul 4, 2017
efed0be
fixed sidebar when switching pages
joecritch Jul 4, 2017
87b5a40
article typography / removed alt-design class
joecritch Jul 4, 2017
eae6d60
added edit link back
joecritch Jul 4, 2017
d74773c
Replaced a few article-template padding* with margin* to better colla…
Jul 4, 2017
40a4246
Fixed is-current sidebar item class
Jul 4, 2017
0a5b51e
Fixed some article overflow issues that were causing funky resize beh…
Jul 4, 2017
afe9651
Fixed several issues with margin and max-width on article page
Jul 4, 2017
1192edf
Moved sidebar from templates to components
Jul 4, 2017
71887fb
Refactored Sidebar to be a component with css-modules. Moved sticky b…
Jul 4, 2017
26e2e88
Removed no-longer-in-use .scss files
Jul 4, 2017
f014ec4
Fixed horizontal alignment of next link when no prev (in blog template)
Jul 4, 2017
552ba57
Tidied up Sidebar component and slugify util method a bit
Jul 4, 2017
1c26a4a
Index page pulls content from index.md now. (Styles need work.) Upgra…
Jul 4, 2017
e4c6734
Added some more markdown sections and reorganized a bit
Jul 4, 2017
9fa8bdb
Active-class for main nav links
Jul 4, 2017
36574cd
First stab at supporting redirect_from pages
Jul 5, 2017
0a14d7b
Sidebar component syltes tweaking
Jul 5, 2017
f8438ad
Added ButtonLink component and plugged in on hmoe page
Jul 5, 2017
519d92d
Renamed templates/index.js -> templates/home.js
Jul 5, 2017
7033655
Iterating on home template
Jul 5, 2017
a1841ac
Home page content loads into live editor. This is pretty hacky at the…
Jul 5, 2017
b7ef61c
Lint fixes
Jul 5, 2017
d65fc2d
Tweaked prism colors to better match mock
Jul 6, 2017
549e1d5
Plugged in Algolia search
Jul 6, 2017
fb9fbc5
Article footer links are now a NavigationFooter component
Jul 6, 2017
904c4c2
Added MarkdownHeader and StickySidebar component in an effort to slim…
Jul 6, 2017
833ee4d
Split article template into 4 templates for Docs, Tutorial, Community…
Jul 6, 2017
53470d1
Sidebar supports external links
Jul 6, 2017
1ea3038
Tutorial section nested links (and anchors) work in Sidenav
Jul 6, 2017
334001d
Fixed a sticky Sidenav position issue
Jul 7, 2017
9902f2a
Blog post pages are created
Jul 7, 2017
2a8bd7d
Made tutorial sidebar a little less hacky
Jul 7, 2017
446792f
Updated Gatsby (and plugins) to 1.0
Jul 7, 2017
d91d674
Blog posts link to authors now. Author info comes from Yaml.
Jul 7, 2017
8ea7ee7
Added blog home index page (displaying latest blog post).
Jul 7, 2017
30dc96f
Small typography, theming and layout tweaks
joecritch Jul 8, 2017
d0e73b6
Fixes
KyleAMathews Jul 9, 2017
b68f3d7
Use gatsby-plugin-react-helmet
KyleAMathews Jul 9, 2017
64b518e
Yarn prettier formatted www/gatsby-node
Jul 9, 2017
f5fcc06
Fixed blog.html.js index page to load full content and limit:1
Jul 9, 2017
35229d8
Merge pull request #4 from bvaughn/nips-and-tucks
bvaughn Jul 9, 2017
26d5834
Simplified MarkdownHeader style by better using flexbox
Jul 9, 2017
14f9bda
Fixed a Prism height issue by converting to max-height
Jul 10, 2017
16ba13b
Fixed edito link on blog index page
Jul 10, 2017
0b6eeab
Blog post authors field is now always an array (for easier Gatsby int…
Jul 10, 2017
1e12160
Blog pages now handle multi-authors correctly. New all-blog-entries p…
Jul 10, 2017
556a1d7
Iterating on sidebar for Blog pages. Stashing
Jul 10, 2017
12cb12e
Markdown template conditional for date/author improved
bvaughn Jul 11, 2017
860171a
Added hacky sidebar to Blog pages and TODO cleanup comments
bvaughn Jul 11, 2017
a5bbe90
Removed redundant pages/blog.html.js in favor of a redirect to the la…
bvaughn Jul 12, 2017
c6f6518
Upgraded gatsby-node to use async/await. (We might step this down beo…
bvaughn Jul 12, 2017
4365214
Page layout correctly highlights current/active section (eg Blog, Com…
bvaughn Jul 12, 2017
e3d584f
Extend Prism line-highlighting fully left-to-right (outside of margin…
bvaughn Jul 12, 2017
fe314a1
Bumped dependencies
bvaughn Jul 13, 2017
6445868
Fixed small CSS overflow issue for Prism
bvaughn Jul 13, 2017
791cc57
Merge master
bvaughn Jul 13, 2017
42269ab
Upgraded gatsby-remark-prism plugin to fix react-live bug
bvaughn Jul 14, 2017
0cd5983
Merge branch 'master' into gatsby
bvaughn Jul 17, 2017
d9fd8c5
Slightly improved global var usage in CodeEditor component
bvaughn Jul 17, 2017
e725a80
Added favicon file to www
bvaughn Jul 18, 2017
fc08fb9
Fixed version label and link
bvaughn Jul 18, 2017
fb3608e
Refactore below_nav and wrapper CSS classes. Added 404 page. This com…
bvaughn Jul 18, 2017
3c6a226
Initial cutting of styles
bvaughn Jul 18, 2017
48018ab
Ripping out SASS, plugging in Glamor: part 1
bvaughn Jul 20, 2017
263c715
Re-shuffled components a bit
bvaughn Jul 20, 2017
ac8d6b9
Patched Webpack resolve roots to avoid having to prefix "../" in fron…
bvaughn Jul 20, 2017
a598ffe
Fixed content:url() styles on external links
bvaughn Jul 20, 2017
b5c4fd5
Yarn lock changes
bvaughn Jul 21, 2017
0d3dc41
Fixed link styling for author links
bvaughn Jul 21, 2017
8cea8a2
Removed some hard-coded color values
bvaughn Jul 21, 2017
388dc1f
Removed explicit React imports since we're using Glamor's createEleme…
bvaughn Jul 21, 2017
1395047
Pretier
bvaughn Jul 21, 2017
5bea34b
Cleaned up home template (header and footer)
bvaughn Jul 21, 2017
3b86319
Fixed Home page layout
bvaughn Jul 21, 2017
237ef79
Fixed responsiveness of CodeEditor on Home page
bvaughn Jul 21, 2017
ba443b6
More markdown style tweaks
bvaughn Jul 21, 2017
4585f54
Removed a redundant style from Home
bvaughn Jul 21, 2017
362718e
Added initial error-codes page. This has a hard-coded error at the mo…
bvaughn Jul 21, 2017
90a194c
Added file headers
bvaughn Jul 21, 2017
7299ac3
Small tidying up
bvaughn Jul 21, 2017
4141243
Lint fixes
bvaughn Jul 21, 2017
aa782dd
Flow ignores www (for now at least) like it used to ignore docs
bvaughn Jul 21, 2017
0850a1a
Moved Prism styles from CSS to JS so they can read from themes
bvaughn Jul 21, 2017
1ac2322
Handle more error types in CodeEditor
bvaughn Jul 21, 2017
6ac02ea
Added a placeholder style for blockquotes
bvaughn Aug 15, 2017
c3e5951
Replaced CodeEDitor's eval() usage with new Function()
bvaughn Aug 15, 2017
b6fb888
Dates are pre-formatted GraphQL query
bvaughn Aug 15, 2017
6a55b33
Upgrade dependencies
KyleAMathews Aug 16, 2017
467b49c
Migrating error decoder
bvaughn Aug 16, 2017
db577b2
Rollback Gatsby/plugin upgrades since they case the server to hang on…
bvaughn Aug 16, 2017
2cebdd1
Error decoder page/routing now properly works
bvaughn Aug 17, 2017
294ee17
Bumped all non-Gastby deps
bvaughn Aug 17, 2017
24fa5d4
Updated all Gatbsy plugins/transforms that can be safely updated
bvaughn Aug 17, 2017
89a9f5e
Updated Gatsby to 1.6.6 (the latest safe version before bug #1849)
bvaughn Aug 17, 2017
b43fac4
Merged master
bvaughn Aug 17, 2017
3813a24
Bumped Gatsby packages a little further
bvaughn Aug 18, 2017
1e4dec5
Bumped Gatsby plugin versions now that Babel runtime issue has been f…
bvaughn Aug 19, 2017
4abbd0f
Fixed h3 anchor hover overflow issue
bvaughn Aug 21, 2017
bb50d00
Added Contributing section to Docs pages
bvaughn Aug 21, 2017
0df6d82
Updated :author section for new error-handling blog post to be an array
bvaughn Aug 21, 2017
1447104
Move layout components out of layout directory
KyleAMathews Aug 23, 2017
53cbe0e
Run prettier
KyleAMathews Aug 23, 2017
46cdbb4
Moved layout-components into components
bvaughn Aug 23, 2017
6d9a450
Update Gatsby
flarnie Aug 28, 2017
9659e2a
Fix 404ing links in docs sidebar
flarnie Aug 29, 2017
07cf8c8
Add links to footer
flarnie Aug 29, 2017
c3ac702
Fix internal links, like on the 'Tutorial' page
flarnie Aug 30, 2017
64c41f2
Merge pull request #8 from flarnie/gatsby
bvaughn Aug 31, 2017
2243056
Fixed Community sidebar links
bvaughn Aug 31, 2017
b38fa35
Updated react-live@1.7.1 to pull in spellcheck fix
bvaughn Aug 31, 2017
b4f037d
Patch Webpack config to ignore xor|props plugins
bvaughn Aug 31, 2017
6dd8fdd
Removed no-longer-utils getOffsetTop/getScrollTop utils
bvaughn Aug 31, 2017
bae638b
Removed window.location in favor of Gatbsy's location prop
bvaughn Aug 31, 2017
00a4218
Prettier formatted Footer
bvaughn Aug 31, 2017
ad85ac9
Big dependency cleanup
bvaughn Sep 1, 2017
d03b8bc
Fixed Gatsby production build by adding null-checks for eg location
bvaughn Sep 1, 2017
476676a
Added build:docs command to root package for Gatbsy
bvaughn Sep 1, 2017
f0b3095
Merge branch 'master' into gatsby
bvaughn Sep 1, 2017
abadedf
Added Netlify config
bvaughn Sep 1, 2017
a54e743
Prettier
bvaughn Sep 1, 2017
4377af5
Lint fix ignores for CDN globals
bvaughn Sep 1, 2017
c0dbb87
Update Gatsby build:docs command to Yarn install too
bvaughn Sep 1, 2017
a0406ad
Added .nvmrc for Netlify
bvaughn Sep 1, 2017
93dd12a
Changed lint-fix approach for Babel to be compat with Gatsby prod build
bvaughn Sep 1, 2017
a89ada1
Fixed home page example layout for Safari
bvaughn Sep 1, 2017
195d0bc
Refactor media query constants to be more flexible/intuitive
bvaughn Sep 5, 2017
3a52e71
[docs update] fix tabs on 'installation' page (#10593)
flarnie Sep 5, 2017
2a75fb5
Added explicit "Live JSX Editor" to home page code examples based on …
bvaughn Sep 5, 2017
fce7c9e
Fixed prod Gatsby build by adding checks around window and location i…
bvaughn Sep 6, 2017
440a262
Prettier
bvaughn Sep 6, 2017
93f8326
added marginLeft to ArrowSvg and abstracted into ButtonLink
joecritch Sep 6, 2017
9c7d29d
tweaked margins, added example TypeKit code, converted FooterTitle to…
joecritch Sep 6, 2017
7d1a95a
Merge branch 'master' into gatsby
bvaughn Sep 7, 2017
153d587
Bumped Gatsby and plugin versions
bvaughn Sep 7, 2017
c29bdc6
Fixed markdown nested styles for images and responsive image links
bvaughn Sep 7, 2017
85ddca9
Fixed PNG image tags and image paths in 2017-05-18-whats-new-in-creat…
bvaughn Sep 8, 2017
6d732bc
Prettier
bvaughn Sep 8, 2017
87d930d
[Gatsby docs update] Enable and fix flow (#10647)
flarnie Sep 8, 2017
88c6374
[Gatsby docs update] minor fixes (#10642)
flarnie Sep 11, 2017
8d0a1b5
[Gatsby docs update] add title and meta tags, initial version (#10654)
flarnie Sep 13, 2017
3b3676c
[Gatsby Docs Update] Fix meta tags and ssr docs build (#10705)
flarnie Sep 15, 2017
553a113
Bumped Gatsby deps to fix PNG issue (#10721)
bvaughn Sep 15, 2017
bd0f28d
[Gatsby Docs Update] Sidebar + article layout updates (#10735)
joecritch Sep 19, 2017
d1e633f
Fix Gatbsy build on Netlify
bvaughn Sep 19, 2017
febac3a
Prettier
bvaughn Sep 19, 2017
dfcb5e1
Fixed search text truncation in header
bvaughn Sep 19, 2017
401d749
Flow fix
bvaughn Sep 19, 2017
a451761
Fixed position of mobile footer (#10750)
bvaughn Sep 19, 2017
7f254de
Replaced react-motion with CSS transition for better perf (#10751)
bvaughn Sep 19, 2017
00296ea
Header component search input fixed for mobile (#10749)
bvaughn Sep 19, 2017
54a9ffa
Fixed location prop problem with Gatbsy (#10760)
bvaughn Sep 20, 2017
8e01b69
Mobile nav no longer collapses sections
bvaughn Sep 20, 2017
be0f147
Merged master
bvaughn Sep 20, 2017
8f6bfc2
Tidied up Gatsby deps and updated them to fix a remark issue
bvaughn Sep 20, 2017
1e8c52a
[Gatsby Docs Update] A few tweaks (#10769)
joecritch Sep 21, 2017
8e5c61f
Fixed blog.html redirect (#10771)
bvaughn Sep 21, 2017
2b5c61e
Removed location props hack now that it's been fixed in Gatbsy (#10773)
bvaughn Sep 21, 2017
833903a
Fixed blog link in footer
bvaughn Sep 21, 2017
d384708
[Gatsby Docs Update] Extra styling for All Posts template (#10775)
joecritch Sep 22, 2017
d4c3aba
Section arrows transition when toggling
bvaughn Sep 22, 2017
b2ff670
Section arrows flip when toggling instead of rotating
bvaughn Sep 22, 2017
bbf3632
Misc formatting fixes (#10814)
bvaughn Sep 25, 2017
e9d69e7
Maybe fix /blog/ redirect behavior on prod (#10815)
bvaughn Sep 25, 2017
53548f7
[Gatsby Docs Update] Horizontal overflow on mobile (#10791)
joecritch Sep 25, 2017
aa51384
[Gatsby Docs Update] Overlay toggle button (#10793)
joecritch Sep 25, 2017
6862d24
[Gatsby docs refactor] Make `dev` command more easily tested (#10786)
flarnie Sep 25, 2017
92e59d8
Fix lint
bvaughn Sep 25, 2017
43abd99
Bumped deps
bvaughn Sep 25, 2017
a33d22b
Updated Gatsby and friends; locked GraphQL versions (for now)
bvaughn Sep 25, 2017
553c4e1
Fixed a bad markdown file
bvaughn Sep 25, 2017
276005b
Add left margin to nested ol, ul (#10825)
acdlite Sep 26, 2017
83477ae
Fix "/blog/" redirect (and markdown redirects) (#10820)
bvaughn Sep 26, 2017
6cac3ad
Removed offline plugin (eg service worker)
bvaughn Sep 26, 2017
954ad4b
Merged master into gatsby (#10834)
bvaughn Sep 26, 2017
4455c3d
Gatsby patch flarnie branch (#10842)
bvaughn Sep 26, 2017
1369261
Cleaned up Sidebar code a little (#10841)
bvaughn Sep 26, 2017
a0c67c3
[Gatsby Docs Update] Tutorial: Clicking an anchor tag should auto-clo…
bvaughn Sep 26, 2017
c8da416
[Gatsby docs update] menu overlay padding bottom (#10847)
joecritch Sep 26, 2017
14d0ef4
Fixed off-by-one error for formatted dates (#10848)
bvaughn Sep 26, 2017
57e3b54
Make homepage examples more approachable (#10872)
gaearon Sep 27, 2017
2b317d1
Merge changes from master into Gatsby branch (#10853)
acdlite Sep 27, 2017
44f5abf
Prettier
bvaughn Sep 27, 2017
20c574d
Fixed author frontmatter after master merge
bvaughn Sep 27, 2017
ccf7625
Gatsby site supports IE11 (#10875)
bvaughn Sep 27, 2017
241f262
Continuation of Acknowledgements page (from #10855) (#10873)
bvaughn Sep 27, 2017
a75bf06
Relocated some misplaced Gatbsy/website polyfills
bvaughn Sep 27, 2017
019b6a7
Update react/react-dom to 16.0.0 (rather than RC) (#10882)
bvaughn Sep 27, 2017
9c0669a
Prettied up 404 page (#10884)
bvaughn Sep 27, 2017
6a2d759
[Gatsby Docs Update] Normalized font weights (#10887)
joecritch Sep 27, 2017
725ce35
[Gatsby Docs Update] Error column fixes (#10886)
joecritch Sep 27, 2017
0de6892
[Gatsby Docs Update] Syntax highlight changes (#10876)
joecritch Sep 27, 2017
9f276dc
[Gatsby Docs Update] Reverted TypeKit ID (#10881)
joecritch Sep 27, 2017
cb02b22
[Gatsby] Consistent capitalization for homepage call to action (#10892)
gaearon Sep 27, 2017
d3ee588
Add a stopgap fix for Safari indentation issue (#10895)
gaearon Sep 27, 2017
ee01b06
[Gatsby Docs Update] Safari Mac footer fix (#10894)
joecritch Sep 27, 2017
b08895f
Merged master and resolved conflicts (#10893)
bvaughn Sep 27, 2017
abce5a6
Fixed author frontmatter in v15.6.2 blog post
bvaughn Sep 27, 2017
d400248
Fixed frontmatter :author attribute in React v15.6.2 post (for real t…
bvaughn Sep 27, 2017
c992261
Gatsby fix embedded videos (#10899)
bvaughn Sep 27, 2017
e93df09
[Gatsby] Pull .gatsby-highlight-code-line to container edge (#10905)
fk Sep 28, 2017
f49baaa
Tightened line heights on paragraphs (#10912)
joecritch Sep 28, 2017
b2954f2
Fix heading line heights (#10911)
joecritch Sep 28, 2017
4bcf2ca
Added break-word to inline code, to fix small screen widths (#10910)
joecritch Sep 28, 2017
759078b
Added Google Analytics tracking id
bvaughn Sep 28, 2017
37cbbea
Updated internal footer links to use gatsby-link
bvaughn Sep 28, 2017
fc28f21
Merge branch 'master' into gatsby
bvaughn Sep 28, 2017
fb77b3d
Fixed some broken anchor tags on Test Renderer page
bvaughn Sep 28, 2017
b2ae4b8
Prettier formats gatsby-node file as well (#10918)
bvaughn Sep 28, 2017
5c64756
Rewrite test renderer docs (#10916)
gaearon Sep 28, 2017
63d2f87
Typo (#10919)
Sep 28, 2017
a7a4361
Added gatsby-plugin-nprogress for slow-loading pages (eg Blog) (#10917)
bvaughn Sep 28, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge changes from master into Gatsby branch (#10853)
* Update changelog for unreleased 16.0 changes (#10730)

* First shot at updating changelog for 16.0

**what is the change?:**
Added an 'unreleased' section to the changelog with info from #10294

**why make this change?:**
To get things set for the 16.0 release.

**test plan:**
Visual inspection

**issue:**
#8854

* Fix typos and formatting errors in changelog

* Add requestAnimationFrame and remove "New helpful warnings"

**what is the change?:**
In response to helpful code review -
- Add mention of dependency on `requestAnimationFrame` and need to
  polyfill that as well as `Map` and `Set`
- Remove "New helpful warnings" section; it was incomplete, and there
  are so many new and updated warnings that it might not be reasonable
  to cover them in the changelog.

**why make this change?:**
Accuracy

**test plan:**
Visual inspection

**issue:**
issue #8854

* Improve wording

* Improve wording and fix missing links

* Add backticks to file names & code; wording tweak

* Break "Major Changes" into "New Feature" and "Breaking Changes"

* Add server side render changes to 16.0 changelog

* Change gist link from mine to gaearons

* Add note about returning fragments

* fix misc nits

* Misc. formatting/wording fixes to changelog

**what is the change?:**
Thanks to the kind code review comments of @gaearon and @nhunzaker we
have
- removed the non-deterministic bold styling on some bullet points
- improved wording of the bullet points for portals, attribute whitelist
  changes, and server rendering changes
- Add note about error boundaries including a breaking change to error
  handling behavior.
- punctuation and capitalization fixes

**why make this change?:**
Clarity and correctness

**test plan:**
Visual inspection

**issue:**
#8854

* fix broken link

* Fixes #9667: Updated createTextInstance to create the text node on correct document (#10723)

* Record sizes

*  Add a changelog for elements having the same key (#10811)

*  Add a changelog for elements having the same key

* Reword

* Markdown fixs on "DOM Attributes in React 16" post (#10816)

* Include tag name into the table snapshot (#10818)

* Update DOM warning wording and link (#10819)

* Update DOM warning wording and link

* Consistently use "Invalid" for known misspellings

* Update license headers BSD+Patents -> MIT

Did find and replace in TextMate.

```
find: (?:( \*)( ))?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+(?:this source tree|the same directory)\.$
replace: $1$2Copyright (c) $3-present, Facebook, Inc.\n$1\n$1$2This source code is licensed under the MIT license found in the\n$1$2LICENSE file in the root directory of this source tree.
```

* Change license and remove references to PATENTS

Only remaining references:

```
docs/_posts/2014-10-28-react-v0.12.md
51:You can read the full text of the [LICENSE](https://github.com/facebook/react/blob/master/LICENSE) and [`PATENTS`](https://github.com/facebook/react/blob/master/PATENTS) files on GitHub.

docs/_posts/2015-04-17-react-native-v0.4.md
20:* **Patent Grant**: Many of you had concerns and questions around the PATENTS file. We pushed [a new version of the grant](https://code.facebook.com/posts/1639473982937255/updating-our-open-source-patent-grant/).

src/__mocks__/vendor/third_party/WebComponents.js
8: * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
```

* Version bumps to use MIT license

* Add ReactTestRenderer documentations (#10692)

* Add ReactTestRenderer documentations

* Add TestRenderer documentations

* TestRenderer is not experiment

* Add a link for jsdom

* Use ES Modules syntax

* Twaek

* Add a Link component

* Use Jest assertions

* Move a documentation for createNodeMock to Idea section

* Renamed

* Tweak

* Rename

* More explicit

* Add a usecase for createNodeMock

* Add changelog for 15.6.2

* Add 15.6.2 blog post to master

* Add Nate to authors on master

* Bump object-assign patch range to match main package.json

* Flow should ignore node_modules/create-react-class

* Update error codes

* Update CHANGELOG for React 16

* v16.0.0

* Doc updates for React 16 + blog post (#10824)

* Doc updates for React 16 + blog post

* Add link to Sophie's post

* Fix React links on the website (#10837)

* Fix React links on the website

* Fix code editor

* Fix code editor, attempt 2

* Doc change for prevContext removal in CDU (#10836)

* Doc change for prevContext removal in CDU

Ref: #8631

* Minor rewording

* Fix note formatting

* React.createPortal is not a function (#10843)

* Update Portals Documentation (#10840)

* Update Portals Documentation

Correct some grammar to be more explicit and clear. Update example CodePen to better match code found in documentation. Update code example styles to match other code examples (ie. 'State and Lifecycle', 'Handling Events').

* Clean up comment to be accurate to example

There was a small comment overlooked when reviewing the documentation. This fixes it to be accurate to the example as well as grammatically correct.

* Update portals.md

* More fixes

* Update name of property initializer proposal (#10812)

The proposal for property initializers is called [Public Class Fields](https://tc39.github.io/proposal-class-public-fields/) now (part of the combined [Class Fields](https://github.com/tc39/proposal-class-fields) proposal).

* Fix portal link (#10845)

* Update docs for React 16 (#10846)

* Minor doc edit

* Rename urls
  • Loading branch information
acdlite authored and bvaughn committed Sep 27, 2017
commit 2b317d19b174aa25717b938ee61f18263a84517b
1 change: 1 addition & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<PROJECT_ROOT>/node_modules/chrome-devtools-frontend/.*
<PROJECT_ROOT>/node_modules/devtools-timeline-model/.*
<PROJECT_ROOT>/www/node_modules/.*
<PROJECT_ROOT>/node_modules/create-react-class/.*
<PROJECT_ROOT>/.*/__mocks__/.*
<PROJECT_ROOT>/.*/__tests__/.*

Expand Down
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
Click to see more.
</summary>

No unreleased changes yet.

</details>

## 16.0.0 (September 26, 2017)

### New JS Environment Requirements

* 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), as well as [requestAnimationFrame](https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame). If you support older browsers and devices which may not yet provide these natively (e.g. <IE11), [you may want to include a polyfill](https://gist.github.com/gaearon/9a4d54653ae9c50af6c54b4e0e56b583).
Expand Down Expand Up @@ -47,8 +53,6 @@
- There is no `react-with-addons.js` build anymore. All compatible addons are published separately on npm, and have single-file browser versions if you need them.
- The deprecations introduced in 15.x have been removed from the core package. `React.createClass` is now available as create-react-class, `React.PropTypes` as prop-types, `React.DOM` as react-dom-factories, react-addons-test-utils as react-dom/test-utils, and shallow renderer as react-test-renderer/shallow. See [15.5.0](https://facebook.github.io/react/blog/2017/04/07/react-v15.5.0.html) and [15.6.0](https://facebook.github.io/react/blog/2017/06/13/react-v15.6.0.html) blog posts for instructions on migrating code and automated codemods.

</details>

## 15.6.2 (September 25, 2017)

### All Packages
Expand Down
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ sass:
gems:
- jekyll-redirect-from
- jekyll-paginate
react_version: 15.4.0
react_version: 16.0.0
react_hashes:
dev: buVLzxzBI8Ps3svVMSUurNdb5dozNidH5Ow4H0YgZeia3t6Oeui2VLpvtAq1fwtK
prod: nCjsa0kjNQPQdxWm12/ReVJzfBJaVubEwwDswyQDGMKYJmeWv3qShMuETfU5fisu
Expand Down
6 changes: 4 additions & 2 deletions docs/_data/nav_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@
title: Reconciliation
- id: context
title: Context
- id: portals
title: Portals
- id: web-components
title: Web Components
- id: higher-order-components
Expand All @@ -65,8 +67,6 @@
title: ReactDOM
- id: react-dom-server
title: ReactDOMServer
- id: react-dom-node-stream
title: ReactDOMNodeStream
- id: dom-elements
title: DOM Elements
- id: events
Expand All @@ -77,3 +77,5 @@
title: Shallow Renderer
- id: test-renderer
title: Test Renderer
- id: javascript-environment-requirements
title: JS Environment Requirements
4 changes: 2 additions & 2 deletions docs/_js/live_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ var IS_MOBILE = (
|| navigator.userAgent.match(/Windows Phone/i)
);

var CodeMirrorEditor = React.createClass({
var CodeMirrorEditor = createReactClass({
propTypes: {
lineNumbers: PropTypes.bool,
onChange: PropTypes.func,
Expand Down Expand Up @@ -74,7 +74,7 @@ var selfCleaningTimeout = {
},
};

var ReactPlayground = React.createClass({
var ReactPlayground = createReactClass({
mixins: [selfCleaningTimeout],

MODES: {JSX: 'JSX', JS: 'JS'}, //keyMirror({JSX: true, JS: true}),
Expand Down
5 changes: 3 additions & 2 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
<script src="https://unpkg.com/codemirror@5.15.2/mode/xml/xml.js"></script>
<script src="https://unpkg.com/codemirror@5.15.2/mode/jsx/jsx.js"></script>
<script src="https://unpkg.com/prop-types/prop-types.min.js"></script>
<script src="https://unpkg.com/react/dist/react.min.js"></script>
<script src="https://unpkg.com/react-dom/dist/react-dom.min.js"></script>
<script src="https://unpkg.com/react/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/create-react-class/create-react-class.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
<script src="/react/js/live_editor.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2013-06-05-why-react.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ to render views, which we see as an advantage over templates for a few reasons:
**no manual string concatenation** and therefore less surface area for XSS
vulnerabilities.

We've also created [JSX](/react/docs/jsx-in-depth.html), an optional syntax
We've also created [JSX](/docs/jsx-in-depth.html), an optional syntax
extension, in case you prefer the readability of HTML to raw JavaScript.

## Reactive updates are dead simple.
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2013-06-12-community-roundup.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ It looks like [Sophie Alpert](http://sophiebits.com/) is the first person outsid

## Origins of React

[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/react/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:
[Pete Hunt](http://www.petehunt.net/blog/) explained what differentiates React from other JavaScript libraries in [a previous blog post](/blog/2013/06/05/why-react.html). [Lee Byron](http://leebyron.com/) gives another perspective on Quora:

> React isn't quite like any other popular JavaScript libraries, and it solves a very specific problem: complex UI rendering. It's also intended to be used along side many other popular libraries. For example, React works well with Backbone.js, amongst many others.
>
Expand Down
8 changes: 4 additions & 4 deletions docs/_posts/2013-06-19-community-roundup-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Mozilla and Google are actively working on Web Components. [Vjeux](http://blog.v

Many of you pointed out differences between JSX and HTML. In order to clear up some confusion, we have added some documentation that covers the four main differences:

- [Whitespace removal](/react/docs/jsx-is-not-html.html)
- [HTML Entities](/react/docs/jsx-is-not-html.html)
- [Comments](/react/docs/jsx-is-not-html.html)
- [Custom HTML Attributes](/react/docs/jsx-is-not-html.html)
- [Whitespace removal](/docs/jsx-is-not-html.html)
- [HTML Entities](/docs/jsx-is-not-html.html)
- [Comments](/docs/jsx-is-not-html.html)
- [Custom HTML Attributes](/docs/jsx-is-not-html.html)
2 changes: 1 addition & 1 deletion docs/_posts/2013-07-03-community-roundup-4.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The best part is the demo of how React reconciliation process makes live editing

## React Snippets

Over the past several weeks, members of our team, [Pete Hunt](http://www.petehunt.net/) and [Paul O'Shannessy](http://zpao.com/), answered many questions that were asked in the [React group](https://groups.google.com/forum/#!forum/reactjs). They give a good overview of how to integrate React with other libraries and APIs through the use of [Mixins](/react/docs/reusable-components.html) and [Lifecycle Methods](/react/docs/working-with-the-browser.html).
Over the past several weeks, members of our team, [Pete Hunt](http://www.petehunt.net/) and [Paul O'Shannessy](http://zpao.com/), answered many questions that were asked in the [React group](https://groups.google.com/forum/#!forum/reactjs). They give a good overview of how to integrate React with other libraries and APIs through the use of [Mixins](/docs/reusable-components.html) and [Lifecycle Methods](/docs/working-with-the-browser.html).

> [Listening Scroll Event](https://groups.google.com/forum/#!topic/reactjs/l6PnP8qbofk)
>
Expand Down
8 changes: 4 additions & 4 deletions docs/_posts/2013-07-17-react-v0-4-0.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ When you're ready, [go download it](/react/downloads.html)!
* Switch from using `id` attribute to `data-reactid` to track DOM nodes. This allows you to integrate with other JS and CSS libraries more easily.
* Support for more DOM elements and attributes (e.g., `<canvas>`)
* Improved server-side rendering APIs. `React.renderComponentToString(<component>, callback)` allows you to use React on the server and generate markup which can be sent down to the browser.
* `prop` improvements: validation and default values. [Read our blog post for details...](/react/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html)
* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](/react/docs/multiple-components.html)
* Removed `React.autoBind`. [Read our blog post for details...](/react/blog/2013/07/02/react-v0-4-autobind-by-default.html)
* Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](/react/docs/forms.html)
* `prop` improvements: validation and default values. [Read our blog post for details...](/blog/2013/07/11/react-v0-4-prop-validation-and-default-values.html)
* Support for the `key` prop, which allows for finer control over reconciliation. [Read the docs for details...](/docs/multiple-components.html)
* Removed `React.autoBind`. [Read our blog post for details...](/blog/2013/07/02/react-v0-4-autobind-by-default.html)
* Improvements to forms. We've written wrappers around `<input>`, `<textarea>`, `<option>`, and `<select>` in order to standardize many inconsistencies in browser implementations. This includes support for `defaultValue`, and improved implementation of the `onChange` event, and circuit completion. [Read the docs for details...](/docs/forms.html)
* We've implemented an improved synthetic event system that conforms to the W3C spec.
* Updates to your component are batched now, which may result in a significantly faster re-render of components. `this.setState` now takes an optional callback as its second parameter. If you were using `onClick={this.setState.bind(this, state)}` previously, you'll want to make sure you add a third parameter so that the event is not treated as the callback.

Expand Down
24 changes: 12 additions & 12 deletions docs/_posts/2013-07-23-community-roundup-5.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ React.renderComponent(

> Guides
>
> * [Why React?](/react/docs/why-react.html)
> * [Displaying Data](/react/docs/displaying-data.html)
> * [JSX in Depth](/react/docs/jsx-in-depth.html)
> * [JSX Gotchas](/react/docs/jsx-gotchas.html)
> * [Interactivity and Dynamic UIs](/react/docs/interactivity-and-dynamic-uis.html)
> * [Multiple Components](/react/docs/multiple-components.html)
> * [Reusable Components](/react/docs/reusable-components.html)
> * [Forms](/react/docs/forms.html)
> * [Working With the Browser](/react/docs/working-with-the-browser.html)
> * [More About Refs](/react/docs/more-about-refs.html)
> * [Tooling integration](/react/docs/tooling-integration.html)
> * [Reference](/react/docs/top-level-api.html)
> * [Why React?](/docs/why-react.html)
> * [Displaying Data](/docs/displaying-data.html)
> * [JSX in Depth](/docs/jsx-in-depth.html)
> * [JSX Gotchas](/docs/jsx-gotchas.html)
> * [Interactivity and Dynamic UIs](/docs/interactivity-and-dynamic-uis.html)
> * [Multiple Components](/docs/multiple-components.html)
> * [Reusable Components](/docs/reusable-components.html)
> * [Forms](/docs/forms.html)
> * [Working With the Browser](/docs/working-with-the-browser.html)
> * [More About Refs](/docs/more-about-refs.html)
> * [Tooling integration](/docs/tooling-integration.html)
> * [Reference](/docs/top-level-api.html)
2 changes: 1 addition & 1 deletion docs/_posts/2013-08-26-community-roundup-7.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ It's been three months since we open sourced React and it is going well. Some st
* [226 posts on Google Group](https://groups.google.com/forum/#!forum/reactjs)
* [76 GitHub projects using React](https://gist.github.com/vjeux/6335762)
* [30 contributors](https://github.com/facebook/react/graphs/contributors)
* [15 blog posts](/react/blog/)
* [15 blog posts](/blog/)
* 2 early adopters: [Khan Academy](http://sophiebits.com/2013/06/09/using-react-to-speed-up-khan-academy.html) and [Propeller](http://usepropeller.com/blog/posts/from-backbone-to-react/)


Expand Down
4 changes: 2 additions & 2 deletions docs/_posts/2013-10-16-react-v0.5.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This release is the result of several months of hard work from members of the te

The biggest change you'll notice as a developer is that we no longer support `class` in JSX as a way to provide CSS classes. Since this prop was being converted to `className` at the transform step, it caused some confusion when trying to access it in composite components. As a result we decided to make our DOM properties mirror their counterparts in the JS DOM API. There are [a few exceptions](https://github.com/facebook/react/blob/master/src/dom/DefaultDOMPropertyConfig.js#L156) where we deviate slightly in an attempt to be consistent internally.

The other major change in v0.5 is that we've added an additional build - `react-with-addons` - which adds support for some extras that we've been working on including animations and two-way binding. [Read more about these addons in the docs](/react/docs/addons.html).
The other major change in v0.5 is that we've added an additional build - `react-with-addons` - which adds support for some extras that we've been working on including animations and two-way binding. [Read more about these addons in the docs](/docs/addons.html).

## Thanks to Our Community

Expand Down Expand Up @@ -41,7 +41,7 @@ It's been awesome to see the things that people are building with React, and we

### React with Addons (New!)

* Introduced a separate build with several "addons" which we think can help improve the React experience. We plan to deprecate this in the long-term, instead shipping each as standalone pieces. [Read more in the docs](/react/docs/addons.html).
* Introduced a separate build with several "addons" which we think can help improve the React experience. We plan to deprecate this in the long-term, instead shipping each as standalone pieces. [Read more in the docs](/docs/addons.html).

### JSX

Expand Down
8 changes: 4 additions & 4 deletions docs/_posts/2013-12-23-community-roundup-12.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ title: "Community Round-up #12"
author: [vjeux]
---

React got featured on the front-page of Hacker News thanks to the Om library. If you try it out for the first time, take a look at the [docs](/react/docs/getting-started.html) and do not hesitate to ask questions on the [Google Group](https://groups.google.com/group/reactjs), [IRC](irc://chat.freenode.net/reactjs) or [Stack Overflow](http://stackoverflow.com/questions/tagged/reactjs). We are trying our best to help you out!
React got featured on the front-page of Hacker News thanks to the Om library. If you try it out for the first time, take a look at the [docs](/docs/getting-started.html) and do not hesitate to ask questions on the [Google Group](https://groups.google.com/group/reactjs), [IRC](irc://chat.freenode.net/reactjs) or [Stack Overflow](http://stackoverflow.com/questions/tagged/reactjs). We are trying our best to help you out!

## The Future of JavaScript MVC

[David Nolen](https://swannodette.github.io/) announced Om, a thin wrapper on-top of React in ClojureScript. It stands out by only using immutable data structures. This unlocks the ability to write a very efficient [shouldComponentUpdate](/react/docs/component-specs.html#updating-shouldcomponentupdate) and get huge performance improvements on some tasks.
[David Nolen](https://swannodette.github.io/) announced Om, a thin wrapper on-top of React in ClojureScript. It stands out by only using immutable data structures. This unlocks the ability to write a very efficient [shouldComponentUpdate](/docs/component-specs.html#updating-shouldcomponentupdate) and get huge performance improvements on some tasks.

> We've known this for some time over here in the ClojureScript corner of the world - all of our collections are immutable and modeled directly on the original Clojure versions written in Java. Modern JavaScript engines have now been tuned to the point that it's no longer uncommon to see collection performance within 2.5X of the Java Virtual Machine.
>
Expand All @@ -22,7 +22,7 @@ React got featured on the front-page of Hacker News thanks to the Om library. If

## Scroll Position with React

Managing the scroll position when new content is inserted is usually very tricky to get right. [Vjeux](http://blog.vjeux.com/) discovered that [componentWillUpdate](/react/docs/component-specs.html#updating-componentwillupdate) and [componentDidUpdate](/react/docs/component-specs.html#updating-componentdidupdate) were triggered exactly at the right time to manage the scroll position.
Managing the scroll position when new content is inserted is usually very tricky to get right. [Vjeux](http://blog.vjeux.com/) discovered that [componentWillUpdate](/docs/component-specs.html#updating-componentwillupdate) and [componentDidUpdate](/docs/component-specs.html#updating-componentdidupdate) were triggered exactly at the right time to manage the scroll position.

> We can check the scroll position before the component has updated with componentWillUpdate and scroll if necessary at componentDidUpdate
>
Expand All @@ -45,7 +45,7 @@ Managing the scroll position when new content is inserted is usually very tricky

## Lights Out

React declarative approach is well suited to write games. [Cheng Lou](https://github.com/chenglou) wrote the famous Lights Out game in React. It's a good example of use of [TransitionGroup](/react/docs/animation.html) to implement animations.
React declarative approach is well suited to write games. [Cheng Lou](https://github.com/chenglou) wrote the famous Lights Out game in React. It's a good example of use of [TransitionGroup](/docs/animation.html) to implement animations.
<figure><a href="https://chenglou.github.io/react-lights-out/"><img src="../img/blog/lights-out.png"></a></figure>

[Try it out!](https://chenglou.github.io/react-lights-out/)
Expand Down
2 changes: 1 addition & 1 deletion docs/_posts/2014-02-20-react-v0.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ We've also published version `0.9.0` of the `react` and `react-tools` packages o

This version includes better support for normalizing event properties across all supported browsers so that you need to worry even less about cross-browser differences. We've also made many improvements to error messages and have refactored the core to never rethrow errors, so stack traces are more accurate and Chrome's purple break-on-error stop sign now works properly.

We've also added to the add-ons build [React.addons.TestUtils](/react/docs/test-utils.html), a set of new utilities to help you write unit tests for React components. You can now simulate events on your components, and several helpers are provided to help make assertions about the rendered DOM tree.
We've also added to the add-ons build [React.addons.TestUtils](/docs/test-utils.html), a set of new utilities to help you write unit tests for React components. You can now simulate events on your components, and several helpers are provided to help make assertions about the rendered DOM tree.

We've also made several other improvements and a few breaking changes; the full changelog is provided below.

Expand Down
Loading