29 Commits

Author SHA1 Message Date
Konstantin Raev
6f1417c849 CI now builds docs website and deploys it to /%version% path
Summary:
Copy of #5760 reverted merge.

We need to preserve history of docs changes on the webserver.
The goal is to allow users to browse outdated versions of docs.
To make things simple all websites will be released to https://facebook.github.io/react-native/releases/version/XX folder when there is a branch cut.

I switched from Travis CI to Cirle CI because it works faster and I am more familiar with it.

How it works:

1. If code is pushed to `master` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/next folder.
Github will serve this website from https://facebook.github.io/react-native/releases/version/next URL.
All relative URLs will work within that website

2. If code is pushed to `0.20-stable` branch then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/releases/0.20 folder.
Github will serve this website from https://facebook.github.io/react-native/releases/v
Closes https://github.com/facebook/react-native/pull/5873

Reviewed By: svcscm

Differential Revision: D2926901

Pulled By: androidtrunkagent

fb-gh-sync-id: 16aea430bac815933d9c603f03921cc6353906f1
shipit-source-id: 16aea430bac815933d9c603f03921cc6353906f1
2016-02-11 06:17:42 -08:00
Sam
de3b942b4d make copyright render the current year
Summary:
As discussed here https://github.com/facebook/react-native/pull/5835 now the copyright is computed from `Date`
Closes https://github.com/facebook/react-native/pull/5847

Reviewed By: svcscm

Differential Revision: D2918854

Pulled By: androidtrunkagent

fb-gh-sync-id: bd5a56111aec1282857ffd469b91f7476b67221d
shipit-source-id: bd5a56111aec1282857ffd469b91f7476b67221d
2016-02-09 16:22:35 -08:00
Christopher Chedeau
3fbd46c6d9 Cleanup Edit with GitHub
Summary:
- Now using a table layout. While having the link inside of the header worked well in the browser, the search API would put "Edit in GitHub" as part of the title -_-
- Instead of putting the link inside of every section like Props, put it on the page header. This makes it less repetetitive and also works on API pages where the link was absent before
- Remove "Run this example" link as there's a giant Run this example sidebar already.
Closes https://github.com/facebook/react-native/pull/5643

Reviewed By: svcscm

Differential Revision: D2883989

Pulled By: vjeux

fb-gh-sync-id: e810e1677d5130692997dd301d6d59cfe04b948f
2016-01-30 23:02:36 -08:00
Christopher Chedeau
1154f2a371 Document colors
Summary:
<img width="601" alt="screen shot 2016-01-27 at 3 37 22 pm" src="https://cloud.githubusercontent.com/assets/197597/12632329/12084e98-c50c-11e5-96c4-4f56e8219b3b.png">

<img width="303" alt="screen shot 2016-01-27 at 3 37 16 pm" src="https://cloud.githubusercontent.com/assets/197597/12632328/12075e70-c50c-11e5-95a3-5f483b4dcb47.png">

<img width="135" alt="screen shot 2016-01-27 at 3 37 38 pm" src="https://cloud.githubusercontent.com/assets/197597/12632327/12067668-c50c-11e5-92f9-ee0c719302b5.png">
Closes https://github.com/facebook/react-native/pull/5587

Reviewed By: svcscm

Differential Revision: D2878110

Pulled By: vjeux

fb-gh-sync-id: 00330e2857b07aac2e3d3c24f1003cdd9a2516c6
2016-01-28 19:37:33 -08:00
Janic Duplessis
2d50ac359c Fix issues running the website locally on windows with npm3 2016-01-02 03:56:32 -05:00
Adam Miskiewicz
cc1bad54ea [Website] First pass at Algolia Doc Search
It’s not yet responsive :(
2015-12-29 12:45:33 -05:00
Joshua Sierles
d9ee81c127 embed an appetize.io simulator for AlertIOS documentation 2015-10-14 19:57:23 +02:00
chirag04
3123f05f3b showcase link on React-native website 2015-08-14 14:34:02 -04:00
Brent Vatne
257bbb5255 [Docs] Add newsletter to top-level header 2015-08-04 13:47:52 -07:00
Mu-An Chiou
129d1548a8 Add dynamic page title
Currently all the pages have the same title, making it hard to
tell which page is while when user has multiple tabs opened.
This adds 'title' to Site so a page title can be passed in and
prepended to the default title
2015-08-02 22:07:53 +08:00
Christopher Chedeau
2771fc4c52 Add link for releases 2015-07-16 19:41:22 -07:00
Zhao Han
693ad91f86 Update website header link github url HTTPS
```
$ curl -I  http://github.com/facebook/react-native
HTTP/1.1 301 Moved Permanently
Content-length: 0
Location: https://github.com/facebook/react-native
Connection: close
```

This saves some network time.
2015-05-04 00:27:33 -05:00
Paul O’Shannessy
9c9992e298 [website] Don't link to #content for docs 2015-03-26 11:52:54 -07:00
Ben Alpert
2d23c2fe1f Switch nav design 2015-03-26 09:53:54 -07:00
Christopher Chedeau
8b8e9f906a Update website 2015-03-26 06:43:45 -07:00
Ben Alpert
8d2632bfd1 [website] White OG image, favicon 2015-03-25 18:47:03 -07:00
Christopher Chedeau
a7452c4a5f White logo 2015-03-25 13:32:42 -07:00
Christopher Chedeau
4eab005009 Improve style docs 2015-03-25 11:36:37 -07:00
Christopher Chedeau
e811181034 Add copyright header on website files 2015-03-23 10:56:09 -07:00
Christopher Chedeau
a738b49ae2 Website: initial page for videos 2015-03-23 09:48:43 -07:00
Christopher Chedeau
591d7b321f Make the publish script faster by not converting all the files on every file 2015-03-15 19:54:14 -07:00
Christopher Chedeau
b9ab607197 Use docs/ComponentName.md at the end of the component docs 2015-03-04 21:03:24 -08:00
Christopher Chedeau
d935f4554b Improvements in the docs generation 2015-03-04 18:10:32 -08:00
Andrew Turner
7cb5ac230e removed 2014 from copyright 2015-02-12 18:34:38 -06:00
Andrew Turner
fe0054f70f Merge branch 'master' into copyright-patch 2015-02-12 18:32:21 -06:00
Christopher Chedeau
70f28332b6 Initial version of the automatically generated docs 2015-02-12 14:44:00 -08:00
Christopher Chedeau
bd53b4191f setup twitter feed and google analytics 2015-02-12 11:52:23 -08:00
Andrew Turner
f10bdd205e updated copyright year 2015-02-11 23:15:08 -06:00
Christopher Chedeau
9231d4f8f0 Initial version of the website and docs. 2015-02-11 20:26:43 -08:00