Uh oh!
There was an error while loading. Please reload this page.
CI now builds docs website and deploys it to /%version% path - #5871
Closed
bestander wants to merge 1 commit into
Closed
CI now builds docs website and deploys it to /%version% path#5871bestander wants to merge 1 commit into
bestander wants to merge 1 commit into
Conversation
bestander
commented
Feb 11, 2016
ContributorAuthor
@facebook-github-bot shipit |
facebook-github-bot
commented
Feb 11, 2016
Contributor
By analyzing the blame information on this pull request, we identified @mkonicek, @vjeux and @bestander to be potential reviewers. |
bestander
commented
Feb 11, 2016
ContributorAuthor
@facebook-github-bot shipit |
davidaurelio
commented
Feb 11, 2016
Contributor
@facebook-github-bot shipit YOLO |
davidaurelio
commented
Feb 11, 2016
Contributor
@facebook-github-bot shipit |
davidaurelio
commented
Feb 11, 2016
Contributor
@facebook-github-bot import |
davidaurelio
commented
Feb 11, 2016
Contributor
@facebook-github-bot DO SOMETHING! |
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/version/0.20 URL. All relative URLs will work within that website 3. If code is pushed to any `XX-stable` or `master` branch and this commit has a tag `latest` then CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/ folder. Github will serve this website from https://facebook.github.io/react-native/ URL. All relative URLs will work within that website I have tested this in a fork, this is the example: http://bestander.github.io/react-native/http://bestander.github.io/react-native/releases/nexthttp://bestander.github.io/react-native/releases/0.40http://bestander.github.io/react-native/releases/0.41 Caveats: Searchdocs algolia works only with stable version of website, so it will redirect from a versioned to the stable one. Next steps: - widget/page to switch between versions of websites (still to decide) - (?) simple UI indication mechanism that you are observing not latest/stable docs
bestanderforce-pushed
the
versioned-website
branch
from
February 11, 2016 10:30
2bd5429 to
0a6900cComparefacebook-github-bot
commented
Feb 11, 2016
Contributor
@bestander updated the pull request. |
bestander
commented
Feb 11, 2016
ContributorAuthor
@facebook-github-bot shipit |
bestander
commented
Feb 11, 2016
ContributorAuthor
I'll try to create a PR from another branch |
facebook-github-bot
commented
Mar 3, 2016
Contributor
@bestander updated the pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
masterbranch 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
0.20-stablebranch 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/version/0.20 URL.
All relative URLs will work within that website
XX-stableormasterbranch and this commit has a taglatestthen CI will build a fresh version of docs and put it in https://github.com/facebook/react-native/tree/gh-pages/ folder.Github will serve this website from https://facebook.github.io/react-native/ URL.
All relative URLs will work within that website
I have tested this in a fork, this is the example:
http://bestander.github.io/react-native/
http://bestander.github.io/react-native/releases/next
http://bestander.github.io/react-native/releases/0.40
http://bestander.github.io/react-native/releases/0.41
Caveats: Searchdocs algolia works only with stable version of website, so it will redirect from a versioned to the stable one.
Next steps: