mirror of
https://github.com/status-im/react-native.git
synced 2025-02-13 01:46:59 +00:00
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
Run the website server
The first time, get all the dependencies loaded via
npm install
Then, run the server via
npm start
open http://localhost:8079/react-native/index.html
Anytime you change the contents, just refresh the page and it's going to be updated.
Publish the website
cd website
npm run publish-website