react-native/website/core
Milan Pavlik 1d101f4236 Add versions to GitHub source links in documentation. #7428
Summary:
Documentation references to source code on GitHub should point to their respective versions in order to avoid confusion and prevent broken links when the master branch differs from the currently viewed version. [More details](https://github.com/facebook/react-native/issues/7428)

Originally links pointed to a hardcoded master branch on GitHub. The change augments the GitHub url to point to a respective branch of the code. The new urls are as follows:

next: `https://github.com/facebook/react-native/blob/master/<path>`
stable: `https://github.com/facebook/react-native/blob/0.25-stable/<path>`

The website module currently does not have a unit test setup. As a result, I performed the following tests:

1. Start the server with `RN_VERSION=next` and verified all links point to _master_
<img width="945" alt="screen shot 2016-05-07 at 14 10 58" src="https://cloud.githubusercontent.com/assets/1419286/15092307/ee66fb32-145d-11e6-92a0-d03169e517c2.png">
2. Start the server
Closes https://github.com/facebook/react-native/pull/7434

Differential Revision: D3274000

Pulled By: vjeux

fb-gh-sync-id: 70d766984d6b0835f0a18928d6831fd2c82b6c7b
fbshipit-source-id: 70d766984d6b0835f0a18928d6831fd2c82b6c7b
2016-05-07 08:36:21 -07:00
..
AlgoliaDocSearch.js [Website] First pass at Algolia Doc Search 2015-12-29 12:45:33 -05:00
BlogPost.js Introduce blog 2016-03-24 14:11:30 -07:00
BlogSidebar.js Introduce blog 2016-03-24 14:11:30 -07:00
DocsSidebar.js CI now builds docs website and deploys it to /%version% path 2016-02-11 06:17:42 -08:00
H2.js Fix issues running the website locally on windows with npm3 2016-01-02 03:56:32 -05:00
Header.js fix all anchor links in docs 2016-02-29 09:21:31 -08:00
HeaderLinks.js Introduce blog 2016-03-24 14:11:30 -07:00
HeaderWithGithub.js Add versions to GitHub source links in documentation. #7428 2016-05-07 08:36:21 -07:00
Marked.js Document colors 2016-01-28 19:37:33 -08:00
Prism.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
Site.js Remove Releases tab from header 2016-03-09 19:36:26 -08:00
center.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
slugify.js Add copyright header on website files 2015-03-23 10:56:09 -07:00
unindent.js Add copyright header on website files 2015-03-23 10:56:09 -07:00