Commit Graph

1287 Commits

Author SHA1 Message Date
Daniel Lo Nigro
d457201862 Upgrade to Jekyll 3
Full list of changes is at https://jekyllrb.com/docs/upgrading/2-to-3/. The tl;dr of it is:
 - Relative permalinks were removed, so all the files in the `docs` subdirectory need their permalink to be prefixed with `docs/`
 - `post` and `page` types were renamed to `posts` and `pages` respectively
 - `jekyll-paginate`, `pygments` and `redcarpet` are all now optional, so I needed to explicitly add it to the Gemfile. Jekyll now uses `rouge` rather than `pygments` for syntax highlighting, but rouge does not support highlighting individual lines (`hl_lines`) so we need to continue using Pygments.
 - Layout metadata (eg. `sectionid`) is now on a `layout` variable rather than `page`

Tested the following pages and confirmed that they all work:
 - "Docs" link (getting started page): http://127.0.0.1:4000/react/docs/getting-started.html
 - Downloads: http://127.0.0.1:4000/react/downloads.html
 - Tutorial: http://127.0.0.1:4000/react/docs/tutorial.html
 - A few pages under the "docs" subdirectory, to confirm they're working properly:
    - http://127.0.0.1:4000/react/docs/addons.html
 - http://127.0.0.1:4000/react/docs/why-react.html
 - http://127.0.0.1:4000/react/docs/create-fragment.html
 - A few tips:
    - http://127.0.0.1:4000/react/tips/false-in-jsx.html
 - http://127.0.0.1:4000/react/tips/style-props-value-px.html
 - Non-English versions of the page:
    - http://127.0.0.1:4000/react/docs/getting-started-it-IT.html
    - http://127.0.0.1:4000/react/docs/getting-started-ja-JP.html
2016-07-19 12:18:49 -07:00
Paul O’Shannessy
710f12e7e3 [docs] Follow up to 6972 - update docs code (#7278) 2016-07-13 13:17:09 -07:00
segmentationfaulter
33faa2c9fe Update 03-interactivity-and-dynamic-uis.md (#6972) 2016-07-13 13:14:41 -07:00
Zac Smith
c95279ea17 Remove uneccesary colon (#7238)
Only use a colon after a statement that is a complete sentence, like [Grammer Girl says](http://www.quickanddirtytips.com/education/grammar/colons).
2016-07-12 11:19:07 -07:00
Varayut Lerdkanlayanawat
8695fd8c66 Reformat event names in Media Events section (#7250) 2016-07-12 10:10:29 -07:00
Samuel Reed
7c4a139e05 Add PropTypes.symbol to reusable components doc (#7171) 2016-07-02 20:54:47 +01:00
Brandon Dail
253a28af5e Clarify purpose of state property in ES6 classes (#7109) 2016-06-23 12:44:36 -07:00
Jim
f50372573e webcomponents should use attachedCallback instead of createdCallback. (#7102) 2016-06-22 12:42:50 -07:00
Nik Nyby
8e726bb55f update babel-core to 5.8.34 in tutorial docs (#7059) 2016-06-16 20:50:14 -07:00
Claudio Brandolino
1cadb2e74d Standardise format of the three "state" questions. (#7046)
* Standardise format of the three "state" questions.

The original format follows the template:

 > 1. x? if `x` then probably isn't state
 > 2. y? if `!y` then probably isn't state
 > 3. z? if `z` then it's not state

This caused both me and a hallway tester to do a double take.

The proposed reformulation allows the answers to follow the same template.

In the same spirit, it uses the same contraction pattern in the last answer (`it's not state`-> `it isn't state`). This has the welcome side effect to make the lack of "probably" stand out more.

* Update phrasing in thinking in reacr
2016-06-16 10:35:18 -07:00
Toru Kobayashi
0856ab5f90 Remove setProps and replaceProps from docs (#7044) 2016-06-14 22:13:26 -07:00
Paul O’Shannessy
0f7cac436c Revert "Remove setProps and replaceProps completely" (#7039) 2016-06-14 15:02:01 -07:00
Qin Junwen
23f3548578 Update 10.4-test-utils.md (#6971)
The find/scry methods which returns DOM component in react@0.13 now returns DOMElement in react@0.14 and later.
2016-06-14 14:09:20 -04:00
Robert Haritonov
070997991a Add React Amsterdam conference to the list (#7028) 2016-06-14 11:02:13 -07:00
nhducit
661864461d Update 03-interactivity-and-dynamic-uis.md (#7015) 2016-06-14 13:55:38 -04:00
Ryo Shibayama
7398aac852 Fix Japanese/Italian/Korean tutorials (#7020)
* Fix japanese tutorial

* Fix Italian tutorial as same as e4fe662

* Fix Korean tutorial as same as e4fe662
2016-06-12 00:03:13 -07:00
inkinworld
a4dd77330b Update 12-context.md (#6973)
Modify a clerical error
2016-06-10 11:52:10 -07:00
Toru Kobayashi
7793eed812 Remove setProps and replaceProps completely (#6921) 2016-06-09 03:53:52 -07:00
ogom
27fc830022 Updte tutorial to ja-JP (#6967) 2016-06-08 19:20:20 -07:00
Yusong Liu
4e3f20814f Fix the typo in the documentaion pages for shallowCompare (#6980)
* fix the typo for the docs of shallowCompare at:
https://facebook.github.io/react/docs/shallow-compare.html

* change "value" to "values" to match the two objects.
2016-06-07 23:09:50 -07:00
Keyan Zhang
0321236b1b [Docs] Error Decoder Page (#6946) 2016-06-04 14:43:56 -07:00
Ben Alpert
2719c2e795 Use remarkable instead of marked (#6961)
https://github.com/reactjs/react-tutorial/issues/139
2016-06-03 14:41:38 -07:00
Daniel Rosenwasser
3aa8cc5739 Update link and description of TypeScript support. (#6953) 2016-06-03 10:27:39 -07:00
Toru Kobayashi
1a2774733a Remove getDOMNode from docs (#6919) 2016-05-30 09:16:15 -07:00
Bruce Harris
61920c9dba Update tutorial with reference to autobinding docs (#6870)
* Update tutorial with reference to autobinding docs

* Update tutorial to clarify that autobinding happens specifically with createClass() API
2016-05-27 04:07:00 -07:00
Ilya Gelman
a1430ecec2 Add ReactNext 2016 conference (#6833) 2016-05-26 23:43:00 -07:00
Daniel Lo Nigro
ce7528f0cd Move HTMLtoJSX page off React site. References https://github.com/reactjs/react-magic/issues/52 (#6608) 2016-05-26 23:39:28 -07:00
Daniel Lo Nigro
b49356879f Add link to ReactJS.NET on server-side environments page (#6607) 2016-05-26 23:36:56 -07:00
Grgur Grisogono
1aebdb1b7e Added React Europe 2015 videos
Linking to the official channel that contains separate playlists for Day 1, Day 2, and Lightning talks
2016-05-26 14:29:48 +02:00
Andrew Clark
b5172001e1 Clarify that string refs are considered legacy. (#6692) 2016-05-25 22:47:34 +01:00
Alex Zherdev
b10ed5de2b Context docs updated with ES6 examples (#6852) 2016-05-24 11:27:38 -07:00
Ben Alpert
382dce686a Point people to prod build in perf docs (#6857) 2016-05-24 11:08:51 -07:00
Vedat Mahir YILMAZ
507f5935e6 Interactivity and Dynamic UIs Docs page updated with ES6 Example (#6832)
* Interactivity and Dynamic UIs Pages ES6 Example

* Change bind handler
2016-05-22 02:32:14 -07:00
Keyan Zhang
0c4dfc630f Merge pull request #6814 from Ivanwangcy/master
Update 03-interactivity-and-dynamic-uis.zh-CN.md
2016-05-20 00:26:53 -07:00
Ivan
66a4e13ecf Update 03-interactivity-and-dynamic-uis.zh-CN.md 2016-05-20 14:25:07 +08:00
hao.huang
dce4337082 Add permalink (#6813)
Add permalink to this doc,so we can access with 'prev' and 'next'
2016-05-19 19:54:42 -07:00
Rachel D. Cartwright
a8da98c9da make test utils format consistent (#6777) 2016-05-15 13:46:03 -07:00
Chad Fawcett
614203a77d Add information on JSX element keys (#6751) 2016-05-12 17:02:07 -07:00
hao.huang
b8a6e894bb Add permalink (#6713)
Add permalink to docs, so we can access with 'prev' and 'next'
2016-05-12 08:57:45 -07:00
djskinner
bd2c2495eb Refer to correct example (#6760)
I *think* this should refer to the second example, where the instance to the ref is stored. In any case please can someone confirm for my own understanding?
2016-05-12 07:49:02 -07:00
Dan Abramov
0f8b615771 Fix zh-TW permalink 2016-05-10 02:21:10 +01:00
Dan Abramov
9f3b407d8c Fix ru-RU doc page permalinks
Fixes #6735
2016-05-10 01:39:15 +01:00
Seba
617dc030db [docs] add link to create-fragment from React.Children.map docs 2016-05-08 22:12:07 -03:00
Seba
0cf32ea28c [docs] Remove mention of 'nested object' as an allowed children in React.Children.map
Replace it with 'keyed fragment', since ReactFragments were made a replecement for Objects as allowed children in #4700
2016-05-08 21:26:40 -03:00
Yaxian
630265c5e3 refine the translation of chapter 12-context (#6665) 2016-05-07 09:47:38 -07:00
Andrey Safronov
1920c37456 Update 03-interactivity-and-dynamic-uis.ru-RU.md 2016-05-04 22:53:39 +04:00
Andrey Safronov
8db595e837 Update 03-interactivity-and-dynamic-uis.ru-RU.md
надо ли менять в заголовках слова "помещать в состояние" на "хранить в состоянии" ?
2016-05-04 19:04:26 +04:00
Andrey Safronov
df7a2e7c4f Create 03-interactivity-and-dynamic-uis.ru-RU.md 2016-05-04 10:01:40 +04:00
Kevin Suttle
3021bc83fd Fix broken link to TypeScript docs (#6687) 2016-05-03 10:56:01 -07:00
Andrey Safronov
e74ccb7e47 Update 02-displaying-data.ru-RU
dot
2016-05-03 00:15:14 +04:00