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
Daniel Lo Nigro
ce7528f0cd
Move HTMLtoJSX page off React site. References https://github.com/reactjs/react-magic/issues/52 ( #6608 )
9 years ago
iamchenxin
2877e4305e
Update zh-docs with 7e2a7f0
9 years ago
Nick Balestra
4a7ff18781
Update 02.1-jsx-in-depth.md
Update 02.1-jsx-in-depth.md
9 years ago
Jim
33cd980f0e
React -> ReactDOM for render() and findDOMNode()
9 years ago
Paul O’Shannessy
a115c46689
[docs] Stop supporting our JSX compiler page
Link to Babel REPL directly instead.
9 years ago
Alastair Hole
2569cabbcd
Update 02.1-jsx-in-depth.md
'setup' is a noun, not a verb
10 years ago
Glen Mailer
466d65ea50
Document boolean attributes in JSX
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
Prathamesh Sonpatki
b305bdb5ea
Fixed link to displayName component spec from JSX in depth article
10 years ago
Julen Ruiz Aizpuru
3ebec4b55b
Docs: do not render components to `document.body`
Rendering to `document.body` in the examples is conveniently short, but it can
be misleading at the same time, especially for newcomers.
While it's possible to render React components to `document.body`, any 3rd
party scripts can also mess up with it, and it can have unintended consequences
and be source of difficult-to-trace bugs.
10 years ago
Rick Beerendonk
60d197eca3
Add documentation about JSX and displayName.
The section that described how JSX transform handles displayName was lost in commit 9b1ee4de4636fcc9af1cf93099e062a3f6eb96f5
Fixes #3338
10 years ago
Aria Buckles
fa83c48c73
[Docs] Add 'ing' to make "opening" and "closing" line up
Test Plan:
None
10 years ago
Brian Kung
4b16e13212
[Docs] Clarify section on namespaced components
While going through the docs, I wasn't sure if the first example was
something I should do or not. This makes the wording a bit more clear.
10 years ago
Preston Parry
1b0f933aba
Update 02.1-jsx-in-depth.md
10 years ago
Preston Parry
5187f9c650
Rewording for clarity
10 years ago
amykyta
20d2dfec1d
Update 02.1-jsx-in-depth.md
10 years ago
Tim Schaub
0625baaf00
Add missing verb
This adds a missing verb in JSX-in-depth doc.
10 years ago
Pedro Nauck
eedb2ffe04
bugfix: remove conflict comment
10 years ago
Pedro Nauck
f876868e9e
update namespaced component to adapt with the v0.12
10 years ago
Sebastian Markbage
836909901e
Updated Docs for new JSX Changes
Moved non-JSX explanation to Displaying Data.
Overhauled JSX in Depth.
Added JSX Spread Section.
10 years ago
Paul O’Shannessy
febd05b900
Update React.DOM -> React.createElement through docs
10 years ago
Cheng Lou
33c7ee6112
[Docs] Remove most of @jsx
I kept some places intact (search for @jsx ) because they require other bigger changes:
- ref-01-top-level-api.md
- grunt/tasks/npm.js
- old blog posts (don't change those)
- examples/ folder, as they have their own package.json that rely on old dependencies (node-jsx, reactify) that haven't upgraded to 0.12
10 years ago
Pedro Nauck
d1b82bbdb4
change note comment about namespaced components
10 years ago
Pedro Nauck
1b201c33ab
change the global variable to a new sample component
10 years ago
Pedro Nauck
02f424158f
add a section at 'jsx-in-depth' talking about namespaced components
10 years ago
Paul O’Shannessy
2865e4a1c8
Set default layout for docs
11 years ago
Christopher Chedeau
4ed066b0ce
Document multiple ways to insert comments in JSX
11 years ago
Daniel Lo Nigro
561bc9a26a
Change “not allowed” back to “discouraged” since you technically *can* use props called `class` or `for`…
11 years ago
Daniel Lo Nigro
6edc47aeae
Add link to HTML to JSX converter to “JSX In Depth” page
11 years ago
xixixao
4c7abcd424
Document displayName
11 years ago
Cheng Lou
9208a5153e
docs add warning to add jsx pragma
11 years ago
Cheng Lou
0767e7b9dd
docs make all link start with /react/docs
11 years ago
Cheng Lou
4217596377
move docs tooling from JSX in Depth
Also removes the code wrap around the syntax highlighting link.
11 years ago
yungsters
bd64af42b5
Add link to third-party `JavaScript (JSX).tmLanguage` in docs.
11 years ago
Paul O’Shannessy
d3cb08a141
Docs: fix header
12 years ago
Paul O’Shannessy
742dc5d0b0
Use script to find remaining 404s. Fix them.
12 years ago
Paul O’Shannessy
9e96cc247a
[docs] Make sure JSX comments code is in block
12 years ago
Paul O’Shannessy
225abe1ec8
Standardized Markdown lists
12 years ago
Paul O’Shannessy
45fe80393c
Cleanup "JSX in Depth"
12 years ago
Paul O’Shannessy
f2345ba2e2
Remove numbers from URLs.
This will let us keep docs in order on the filesystem but have
reasonable permalinks. If we add something at 02- it doesn't result in
lots of broken links.
12 years ago
Paul O’Shannessy
17ea30c8c5
Fix title casing and heading levels
12 years ago
petehunt
1263fde643
move docs around, add likebutton
12 years ago
petehunt
53d8a64442
fix some links
12 years ago
Pete Hunt
c0b4dc4c89
Update 02.1-jsx-in-depth.md
12 years ago
petehunt
e917e9fa3a
jsx gotchas, reference
12 years ago
petehunt
c3f99be8fe
add seconds 02.1 and 03
12 years ago
Pete Hunt
dc25c4d32b
Update syntax.md
Some inconsistencies pointed out in FB comments
12 years ago
Greg Roodt
8d05bef2b8
Minor typo.
12 years ago
yungsters
c63eddc525
Add a JSX Compiler tool.
12 years ago