Commit Graph

91 Commits

Author SHA1 Message Date
Nat Alison
c792f7d29f Fix eslint errors (#1734) 2019-02-25 15:56:53 -08:00
Dan Abramov
bab2a3491a Hide horizontal scrollbar in header and tweak breakpoitns (#1749)
* Hide horizontal scrollbar in header

* Tweak topbar breakpoints

* Simplify breakpoints to fix animation
2019-02-24 14:27:31 +00:00
Dan Abramov
ef81426b06 Put Blog in top bar before Community (#1741) 2019-02-23 22:17:16 +00:00
Brian Vaughn
07253c8209 Add "Languages" page (#1691)
* Added language selector page

* PR nits

* Fix typo in variable name

* Added language icon. Show search icon in mobile.

* Tweaked header alignment

* Split languages into 3 categories based on progress:
complete, partially translated, and needs contributors

* Lower-cased pt-* language codes

* Re-added locale sort

* Renamed 'Partially Translated' header to 'In Progress'
2019-02-23 19:42:52 +00:00
Saransh Kataria
cbe648ede3 updated footer to get year based on current date 2019-02-16 14:35:03 -08:00
Nurul Sundarani
bbf2cb1d6f Updated Copyright Year 2019-02-13 16:08:25 +05:30
Dan Abramov
ea03fe7163 Clarify DOM container in homepage examples (#1526) 2019-01-02 19:07:45 +00:00
Michał Gołębiowski-Owczarek
06a8850b2f HTTPS-ify lots of URLs, update some to their newer homes (#1157)
This matters for user security.

I didn't touch blog posts & pages related to past conferences.

The `content/docs` could be HTTPS-ified as well but it contains lots of HTTP
links so maybe that'd be best done in a separate PR.
2018-10-05 14:39:12 -07:00
Dustin Schau
7d12082d8b fix: prevent gatsby file detection from breaking path field (#1226)
Fixes #1088

This should fix the path issues that people intermittently run into.
Gatsby sees the relative path (and the parent node with an absolute
path), joins on the parent path and the relative path, and presumes it's
a file... which is normally good, but which here is not what we want
beacuse then we're getting a resolver of type file instead of type
string referring to the relative path of the document.

This seems to fix a (long standing?) bug where the "Edit this Page"
button is broken, as well. e.g. see [this page](https://reactjs.org/community/support.html) which _should_ have an Edit this Page button

I'd need to think more as to whether there's a cleaner fix here, but
this seems to work pretty well!
2018-10-03 15:02:44 -07:00
Dustin Schau
3954cfe6f3 fix: address PR feedback (thanks @bvaughn!) 2018-09-28 20:39:43 -05:00
Dustin Schau
6e2340d141 style: run prettier 2018-09-28 18:07:01 -05:00
Dustin Schau
12c43455e7 chore: add prop-types validation to code example 2018-09-28 18:04:02 -05:00
Dustin Schau
169754fb1b refactor: tweak to use the _updateState method 2018-09-28 14:54:26 -05:00
Dustin Schau
d83238caf0 feat: get hot reloading working for js code snippets 2018-09-28 14:52:17 -05:00
Dustin Schau
57cb7abde1 chore: remove outer wrapper div 2018-09-28 14:32:36 -05:00
Dustin Schau
fc0ef96fb6 chore: minor tweaks and run prettier 2018-09-28 14:29:44 -05:00
Dustin Schau
3ead525cf7 feat: refactor index page so hot reloading works for code examples 2018-09-28 14:17:15 -05:00
Alexander Nanberg
71b03486c0 Upgrade to Gatsby v2 (#1104)
* Upgrade to Gatsby v2

* Remove unnecessary polyfills since gatsby already provides them

* Move global styles to gatsby-browser

* Add fb comment and convert to cjs

* Revert to use pageQuery again

* Add back html.js

* Update dependencies

* Move TitleAndMetaTags

* Replace glamor/reset with normalize.css which fixes style order in prod

* Prettier formatting

* Remove unused types

* Remove old layout

* Fix versions link

* Update deps

* Update deps

* Remove hack since it's no longer needed

* Update dependencies

* Fix build error

* Fix prettier config resolution

* Update gatsby

* Remove custom onCreatePage logic

* Update dependencies

* Fix build

* Update dependencies

* prettier formatting

* update dependencies

* add custom babel config for flow

* upgrade dependencies

* update dependencies

* use stable gatsby release
2018-09-19 13:11:19 +01:00
Ben Halpern
1afab28a7e Add dev.to link to footer (#1003)
* Add DEV Community (dev.to) link to footer

Add to the channels section of footer alongside similar resources

* Add DEV Community to support page
2018-06-26 18:44:29 +01:00
Dan Abramov
623523131e Rewrite Installation and related docs (#996)
* Rewrite "adding React to existing app"

Fixes #988

* Some copy

* typo

* Update babel instructions

* Update umd link

* Add prod minification section

* Show "button" example in several targets

* wip

* More

* More

* tweak

* yas

* Multi root tip

* moaar

* alot

* Tweak links

* Explain better

* better lead

* tweaks

* tweaks

* wording

* More reassuring tone

* Grammar

* wording

* feedback from readers

* Use id, not class

* More nits

* Re-add a useful section
2018-06-26 01:24:56 +01:00
Brian Vaughn
8e45c4bd6a Added versions page with links to recent releases 2018-04-13 11:45:12 -07:00
Brian Vaughn
ae0b9532e1 Added version drop-down toggle (that I will replace in a moment) 2018-04-13 11:31:17 -07:00
Alex Krolick
8006e2dc8e Merge pull request #688 from raunofreiberg/fix/footer-nav-links-title
fix: NavigationFooter links pull paginated title from nav metadata
2018-03-28 10:02:43 -07:00
raunofreiberg
01f780cf00 refactor: getPaginatedTitle -> getPageById 2018-03-15 09:37:08 +02:00
Rauno
3163c18da9 fix: Footer keys warning 2018-03-15 01:46:52 +02:00
Rauno
0b5b2c72f4 fix: NavigationFooter links pull paginated title from nav metadata 2018-03-15 01:44:07 +02:00
Alex Krolick
8a12940f0d Merge pull request #663 from jdan/master
Improve a11y in homepage examples with some labels
2018-03-08 17:30:32 -08:00
Jordan Scales
35ea09cf03 improve a11y in homepage examples with some labels 2018-03-04 16:57:18 -05:00
Michael H
f1cbff3e17 Fixed Accessiblity Issue jsx docblocks - 594
set ignoreTabKey to true so that keyboard only users can tab out of jsx docblocks
2018-02-21 20:34:02 -08:00
Dan Abramov
0b805a8d97 Make error message bold on the decoder page (#582)
* Make error message bold on the decoder page

* Update ErrorDecoder.js

* Update ErrorDecoder.js
2018-02-04 22:38:35 +00:00
OOO :: ItsPugle
e81393125e Update Footer.js to reflect the change of year (#493)
* Update Footer.js

* Removing an accidental character
2018-01-07 11:38:33 +00:00
Alex
7fafb9f916 Break out Installation into top-level doc section (#452)
* Break out Installation into top-level doc section

* Update navigation (prev/next, nav tree)

- Move Installation section to top
- Add next/prev to install pages

* add links to other install options from try react page

* fix markdown link

* Clarify that Quick Start and Install are optional "next steps"

* Add top-level CDN page

This is useful for Codepen and other Unpkg-y setups

* Add link to Tutorial from Try React

* Update CRA link in tutorial

* Make Try React subheader a proper sentence

* Add "minimal"

* Explain local dev setup is more work than Codepen etc

* Fix typos

* Add : between headings

* add note that CRA is not lightweight

* fix typo

* Update add-react-to-a-new-app.md

* Update add-react-to-a-new-app.md

* Remove the Bower note

* Update try-react.md

* Tweak wording

* Use direct link
2017-12-23 15:37:23 +00:00
Brian Vaughn
bb55d1083b Re-ran Prettier after version bump 2017-12-21 09:22:05 -08:00
Joe Critchley
184a7ef947 Reorganized footer nav (#448)
* Reorganized footer nav to match latest structure

* Footer nav - skip Installation page for Quick Start
2017-12-20 15:06:12 +00:00
Fredrik Forsmo
a970afa27e Remove "use strict" from source files 2017-12-02 15:25:17 +01:00
Brian Vaughn
b8d13d5fe5 Merge pull request #205 from tricinel/feature/flow-types
Add flow types to components; realted to #24
2017-11-29 13:32:38 -08:00
Bond
fbbf1081ec Pretty print 2017-11-27 10:18:39 +01:00
Bond
ce01d0baa7 Update footer links to example and community tools 2017-11-27 09:43:05 +01:00
tricinel
03df4d4ab8 Merge branch 'master' into feature/flow-types 2017-11-21 18:59:27 +01:00
tricinel
232d15463d Add flow types; related to #24 2017-11-20 17:57:36 +01:00
tricinel
cf2bd4c171 Reorganise open/close navMenu functions 2017-11-20 16:33:32 +01:00
Dan Abramov
9e6e0bddb1 Update CodeEditor.js 2017-11-09 22:53:13 +00:00
Brian Vaughn
f93f56b112 Merge branch 'fb-query-string-param' 2017-11-06 14:59:44 +00:00
Brian Vaughn
d23c8c9aad Removed 'qs' module dependency from ErrorDecoder 2017-11-06 14:59:38 +00:00
Keyan Zhang
5cc60281b5 prettier 2017-10-31 23:47:15 -07:00
Keyan Zhang
d73bff0982 Use qs to parse query params 2017-10-31 23:26:08 -07:00
tricinel
cce9ef7b60 Add flow types to components; realted to #24 2017-10-24 18:49:29 +02:00
Yangshun Tay
405e7c5166 Fix for comments 2017-10-24 01:05:23 +08:00
Brian Vaughn
d5f98ca1ed Merge pull request #156 from tricinel/feature/flow-types
Switch to flow types; wip related to #24
2017-10-20 09:15:24 -07:00
tricinel
ab5815b11a Add Todo notes and better flow types 2017-10-20 18:07:44 +02:00