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
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.
9 years ago
Rachel D. Cartwright
a8da98c9da
make test utils format consistent ( #6777 )
9 years ago
Jim
d5116e56b3
Mention Enzyme on the test utils page. ( #6523 )
9 years ago
rgarifullin
8f7edbca43
Add missing semicolon in test-utils part of docs
9 years ago
Jody McIntyre
5e19c520de
Add a link to the list of supported events
9 years ago
Yuichi Hagio
f501508014
Update 10.4-test-utils.md
Added `var renderer = ReactTestUtils.createRenderer();` (Line 235) to clarify where `renderer` (Line 236) comes from.
9 years ago
Roman Pominov
485688f8c4
fix shallowRenderer.getRenderOutput() return type in docs
9 years ago
Baraa Hamodi
a38a848170
Documentation cleanup.
9 years ago
Baraa Hamodi
bd6d713917
File Cleanup.
9 years ago
Ben Alpert
b637cb3193
Updat docs for refs/findDOMNode
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
Edvin Erikson
8148667c6d
Added a note about needing document globally available
Added a note in ``10.4-test-utils.md` about needing window, document and
document.createElement globally available before importing React.
9 years ago
Andreas Savvides
5b97061fb0
Make definitions more readable & optional params more obvious
10 years ago
Ben Alpert
9e2c893767
Fix formatting in test utils docs
10 years ago
Kohei TAKATA
c1160668d9
Enclose variables in back quote
10 years ago
Domenico Matteo
6babb5de38
improve ReactTestUtils.Simulate documentation
10 years ago
Kohei TAKATA
19327d11e0
Add period
10 years ago
Reed Loden
dd010b34e2
SSL/TLSize all the things! (convert http:// to https:// where appropriate)
Update links to use https:// where it is supported. There's probably a lot
more that could be fixed, but these are the core ones I found (especially
the download links in order to prevent MITM attacks). Note that there are
some fb.me links that will redirect to http:// even while accessed over
https://, but this seemed like the best way to fix those for now.
NOTE: Only non-third-party files were modified. There are references to
http:// URLs in vendored/third-party files, but seems appropriate to fix
upstream for those rather than editing the files.
Also, copy one image locally to the blog, as it was hotlinking to a site
that did not support https://.
Last, use youtube-nocookie.com instead of youtube.com for video embeds,
as the former doesn't try to set a cookie on load (privacy enhancement).
10 years ago
Serg
d12628e499
Fixed typo
10 years ago
Ben Alpert
d6752b5da0
[docs] Fix type on renderIntoDocument
Fixes #3581 .
10 years ago
Cheng Lou
db33842478
Remove mention from docs
10 years ago
Jim
7114950cd1
Updated docs examples/recommendations to use findDOMNode instead of getDOMNode
10 years ago
Petri Lehtinen
d4d5ea8253
Document React.addons.TestUtils.isElement()
10 years ago
Scott Feeney
09e80b0a06
Mention shallow rendering's limitations
Also, move it to the bottom of the test utils documentation and mention that it's experimental.
10 years ago
Scott Feeney
969a4bf74c
Add documentation for shallow testing
See #2393 for the original issue, and #2497 for the implementation.
10 years ago
Martin Jul
ded474e6fe
Update 10.4-test-utils.md
This adds minimal valid event data to the Simulate.change example for a text input field.
10 years ago
Ben Alpert
09f1d04981
Make ReactTextComponent properly injectable
ReactTextComponent's implementation is DOM-specific; instead of flattenChildren creating the ReactTextComponent instances, ReactNativeComponent now takes care of having ReactTextComponent injected and creating the component instance. I also renamed ReactTextComponent to ReactDOMTextComponent and moved it to browser/ui/ where it belongs. ReactDOMTextComponent no longer inherits directly from ReactComponent and instead implements construct and {mount,receive,unmount}Component directly.
This diff removes `ReactTestUtils.isTextComponent` which should have previously never returned true when using public APIs.
Test Plan: jest, use ballmer-peak example.
10 years ago
Ivan Krechetov
327f903b6b
There's no isComponentOfType() anymore
10 years ago
Sebastian Markbage
4e203db794
More Descriptor -> Element renames
10 years ago
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
10 years ago
Jesse Skinner
1f1071a8c3
Fix inconsistency in mockComponent argument name
The second argument of mockComponent was listed as tagName, but referred to in the description as mockTagName. I changed the first one to mockTagName to be consistent.
10 years ago
Paul O’Shannessy
085c7da4b7
TestUtils docs: isComponentOfType -> isDescriptorOfType
Fixes #1946
11 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Jim OBrien
489ff2eb38
typo
11 years ago
Kyle Mathews
28586493bc
typo
11 years ago
Kunal Mehta
8ed8c4059c
Reference Jest in TestUtils documentation.
11 years ago
Dmitry Mazuro
9d05706737
Update Jasmine link
11 years ago
Ben Alpert
4c73aad3cc
Update Simulate docs to reflect reality
cf. #1532 , #1445 .
11 years ago
Marcin Kwiatkowski
4d00cfb7ff
fix typo in 09.4-test-utils.md
11 years ago
Ben Alpert
8258cb2440
Update Simulate docs and reorg a little bit
11 years ago
petehunt
6de90dcebb
clone docs
11 years ago
petehunt
b22ba84b1d
fix docs
11 years ago
petehunt
e095116cd8
Add ReactTestUtils to addons
11 years ago