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
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
Rachel D. Cartwright
a8da98c9da
make test utils format consistent ( #6777 )
2016-05-15 13:46:03 -07:00
Jim
d5116e56b3
Mention Enzyme on the test utils page. ( #6523 )
2016-04-15 16:20:43 -07:00
rgarifullin
8f7edbca43
Add missing semicolon in test-utils part of docs
2016-03-17 22:51:11 +03:00
Jody McIntyre
5e19c520de
Add a link to the list of supported events
2016-01-27 18:09:47 -05:00
Yuichi Hagio
f501508014
Update 10.4-test-utils.md
...
Added `var renderer = ReactTestUtils.createRenderer();` (Line 235) to clarify where `renderer` (Line 236) comes from.
2016-01-01 23:15:37 -05:00
Roman Pominov
485688f8c4
fix shallowRenderer.getRenderOutput() return type in docs
2015-11-01 16:54:41 +03:00
Baraa Hamodi
a38a848170
Documentation cleanup.
2015-10-12 15:33:32 -04:00
Baraa Hamodi
bd6d713917
File Cleanup.
2015-10-10 16:05:58 -04:00
Ben Alpert
b637cb3193
Updat docs for refs/findDOMNode
2015-10-06 17:53:38 -07:00
Ben Alpert
c3dcd2e9dd
Update some more docs for package split
2015-10-06 17:36:16 -07:00
Jim
33cd980f0e
React -> ReactDOM for render() and findDOMNode()
2015-10-05 17:46:58 -07:00
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.
2015-09-30 14:28:57 +02:00
Andreas Savvides
5b97061fb0
Make definitions more readable & optional params more obvious
2015-08-27 16:32:07 +01:00
Ben Alpert
9e2c893767
Fix formatting in test utils docs
2015-08-25 09:47:38 -07:00
Paul O’Shannessy
caa5e4928d
Merge pull request #4451 from dmatteo/TestUtils.Simulate-docs
...
improve ReactTestUtils.Simulate documentation
2015-08-17 14:51:05 -07:00
Kohei TAKATA
c1160668d9
Enclose variables in back quote
2015-07-22 16:19:04 +09:00
Domenico Matteo
6babb5de38
improve ReactTestUtils.Simulate documentation
2015-07-21 22:27:20 +02:00
Kohei TAKATA
19327d11e0
Add period
2015-07-21 21:08:42 +09:00
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).
2015-04-18 16:49:32 -07:00
Serg
d12628e499
Fixed typo
2015-04-13 12:12:49 +03:00
Ben Alpert
d6752b5da0
[docs] Fix type on renderIntoDocument
...
Fixes #3581 .
2015-04-03 09:12:10 -07:00
Cheng Lou
db33842478
Remove mention from docs
2015-03-23 20:13:24 -04:00
Paul O’Shannessy
04bb500df0
Merge pull request #2963 from graue/document-shallow-testing
...
Add documentation for shallow testing
2015-03-10 09:39:47 -07:00
Jim
7114950cd1
Updated docs examples/recommendations to use findDOMNode instead of getDOMNode
2015-03-05 16:42:43 -08:00
Petri Lehtinen
d4d5ea8253
Document React.addons.TestUtils.isElement()
2015-02-02 10:22:52 +02:00
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.
2015-01-27 17:09:16 -08:00
Scott Feeney
969a4bf74c
Add documentation for shallow testing
...
See #2393 for the original issue, and #2497 for the implementation.
2015-01-27 13:44:20 -08:00
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.
2014-11-17 13:14:11 +01:00
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.
2014-11-15 12:30:42 -08:00
Ivan Krechetov
327f903b6b
There's no isComponentOfType() anymore
2014-11-11 09:25:33 +01:00
Sebastian Markbage
4e203db794
More Descriptor -> Element renames
2014-10-28 11:06:31 -07:00
Sebastian Markbage
4202fcd9c5
Replace transferPropsTo with transferring props patterns
2014-10-28 11:06:30 -07:00