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
9 years ago
Ben Alpert
c3dcd2e9dd
Update some more docs for package split
9 years ago
Jim
33cd980f0e
React -> ReactDOM for render() and findDOMNode()
9 years ago
mheiber
b801d5856c
Update cloneWithProps documentation
Updated documentation to reflect that using React.cloneElement is the new way to copy an element and preserve `key` and `ref`.
Fixes #3432 , closes #3447 .
10 years ago
Seyi Adebajo
97f1a323b7
Fixed typo / grammar docs
10 years ago
Ben Alpert
3d6af36002
Add docs for createFragment
10 years ago
Toru Kobayashi
906f0bfe62
Fix a doc. cloneWithProps clones a ReactElement.
10 years ago
Dan Fox
59fa2f44df
Fix markdown parsing error
closes #3075
10 years ago
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
10 years ago
Ben Alpert
fb46ad0356
Update docs to align with 0.12 better
- Rename React.renderComponent -> React.render
- Remove most references to transferPropsTo
10 years ago
Oliver Zeigermann
c1abc9b8c5
Update 09.5-clone-with-props.md
10 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
WickyNilliams
bd7e840a81
follow docs convention for notes
11 years ago
Nick Williams
f8bcc2e333
Add note about key prop being excluded by cloneWithProps
Whilst this is intentional behaviour (see #1274 ), it is not documented anywhere, so it is worth mentioning.
It would also be nice if React issued a warning to console if a cloned component loses its key (as this will silently break reconciliation?)
11 years ago
petehunt
9ffe030d52
Add update() docs
11 years ago
petehunt
6de90dcebb
clone docs
11 years ago