Commit Graph

45 Commits

Author SHA1 Message Date
Dan Abramov
ea03fe7163 Clarify DOM container in homepage examples (#1526) 2019-01-02 19:07:45 +00:00
Sophie Alpert
cd6950a718 Add information about versioning policy (#1403) 2018-11-16 17:07:48 -08:00
Sophie Alpert
40394f97a8 Feature headings easier to read 2018-10-17 12:56:47 -07: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
e855f5f503 chore: rearrange import order 2018-09-28 18:12:49 -05:00
Dustin Schau
fc0ef96fb6 chore: minor tweaks and run prettier 2018-09-28 14:29:44 -05:00
Dustin Schau
9d6015a871 fix: refactor plugin to use source-filesystem and onCreateNode 2018-09-28 14:25:10 -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
Sophie Alpert
0e4f45fa24 – 2018-08-17 13:21:31 -07:00
Alex Krolick
d9cd3e311f upgrade some gatsby deps 2018-07-16 21:43:51 -07: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
Dan Abramov
f461942615 Minor wording tweak for Versions page (#816) 2018-04-17 17:29:09 +01:00
Brian Vaughn
88bf29d3f3 Added 16.3 changelog to version links 2018-04-15 08:00:04 -07:00
Brian Vaughn
d184d0292f Added links to old release changelogs also 2018-04-14 08:08:16 -07:00
Brian Vaughn
48a92c592e Moved versions control into versions.yml and Gatsby plug-in 2018-04-13 13:42:50 -07:00
Brian Vaughn
8e45c4bd6a Added versions page with links to recent releases 2018-04-13 11:45:12 -07:00
Brian Vaughn
bb55d1083b Re-ran Prettier after version bump 2017-12-21 09:22:05 -08:00
Fredrik Forsmo
a970afa27e Remove "use strict" from source files 2017-12-02 15:25:17 +01:00
Sophie Alpert
33cfa5f6b8 Fix hero buttons to be clickable (#373) 2017-11-29 19:35:28 -08: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
Brian Vaughn
989cccee10 Prettier fix 2017-11-29 13:26:52 -08:00
Brian Vaughn
d2a9c9aed7 Removed unnecessary empty <div> from conditional 2017-11-29 13:26:06 -08:00
tricinel
990a13e2af Handle case when author does not exist
According to the Edge type in allMarkdownRemarkData, the author in
frontmatter could be undefined.

related to #24
2017-11-28 14:57:20 +01:00
Michael Mullins
1d7c1d4ad4 convert logo-large into a plain white version of the logo
logo-large was a custom version of the logo made just for the banner background. It was also scaled up manually rather than taking advantage of svg's inherit scaling. This change reduces its size, makes it just a plain white version of the react logo, and moves most of the custom stuff into css. It also moves it from the static folder, over to the icons folder where it can be imported as a url.
2017-11-27 12:25:50 -06: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
Brian Vaughn
f5aaf4c1b4 Moved home page example code to /content/home
Now examples are trasnformed to GraphQL during build and assembled by the index template. This makes them easier to edit and tie in with their associated markdown description.
2017-11-06 13:01:13 +00:00
Tay Yang Shun
65f1ced297 Shift into home folder 2017-11-05 23:35:59 +08:00
Tay Yang Shun
57baeb1298 Shift out examples content 2017-10-24 04:05:40 +08:00
Yangshun Tay
405e7c5166 Fix for comments 2017-10-24 01:05:23 +08:00
Yangshun Tay
505efa09ee Fix styling 2017-10-24 01:05:23 +08:00
Yangshun Tay
137f0ffa0c Minor formatting fixes 2017-10-24 01:05:23 +08:00
Yangshun Tay
a1cb7af47f Use glamor styles for home page 2017-10-24 01:05:23 +08:00
Yangshun Tay
1e6151e390 Split up marketing content into Markdown files 2017-10-24 01:05:23 +08:00
Yangshun Tay
60dab3606e Shift home into pages 2017-10-24 01:05:23 +08:00
Brian Vaughn
7a9f04cad8 Removed MIT section from website source file headers 2017-10-10 10:36:40 -07:00
Brian Vaughn
0e647230e2 Replaced CC-BY 4.0 license in source code headers with MIT 2017-10-07 08:00:22 -07:00
Yangshun Tay
5f804b269d Standardize license across source files (#45) 2017-10-07 10:10:04 +01:00
Brian Vaughn
c9e1c3b834 Updated license name in headers 2017-10-06 13:27:15 -07:00
Brian Vaughn
1de4c66dc6 Added some basic Flow types to get things started 2017-10-05 15:33:18 -07:00
Brian Vaughn
192c429a21 Added missing title and og:url to 1-off pages 2017-10-04 15:31:46 -07:00
Brian Vaughn
9d9b2021ed Migrated Gatsby website source and config 2017-10-04 14:56:10 -07:00