{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/5760","repository_url":"https://api.github.com/repos/facebook/react-native","labels_url":"https://api.github.com/repos/facebook/react-native/issues/5760/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/5760/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/5760/events","html_url":"https://github.com/facebook/react-native/pull/5760","id":131397434,"number":5760,"title":"CI now builds docs website and deploys it to /%version% path","user":{"login":"bestander","id":2121048,"avatar_url":"https://avatars.githubusercontent.com/u/2121048?v=3","gravatar_id":"","url":"https://api.github.com/users/bestander","html_url":"https://github.com/bestander","followers_url":"https://api.github.com/users/bestander/followers","following_url":"https://api.github.com/users/bestander/following{/other_user}","gists_url":"https://api.github.com/users/bestander/gists{/gist_id}","starred_url":"https://api.github.com/users/bestander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bestander/subscriptions","organizations_url":"https://api.github.com/users/bestander/orgs","repos_url":"https://api.github.com/users/bestander/repos","events_url":"https://api.github.com/users/bestander/events{/privacy}","received_events_url":"https://api.github.com/users/bestander/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/react-native/labels/CLA%20Signed","name":"CLA Signed","color":"e7e7e7"},{"url":"https://api.github.com/repos/facebook/react-native/labels/GH%20Review:%20review-needed","name":"GH Review: review-needed","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-02-04T16:17:33Z","updated_at":"2016-02-09T18:30:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/react-native/pulls/5760","html_url":"https://github.com/facebook/react-native/pull/5760","diff_url":"https://github.com/facebook/react-native/pull/5760.diff","patch_url":"https://github.com/facebook/react-native/pull/5760.patch"},"body":"We need to preserve history of docs changes on the webserver.\r\nThe goal is to allow users to browse outdated versions of docs.\r\nTo 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.\r\n\r\nI switched from Travis CI to Cirle CI because it works faster and I am more familiar with it.\r\n\r\nHow it works:\r\n\r\n1. 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.\r\nGithub will serve this website from https://facebook.github.io/react-native/releases/version/next URL.\r\nAll relative URLs will work within that website\r\n\r\n2. 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.\r\nGithub will serve this website from https://facebook.github.io/react-native/releases/version/0.20 URL.\r\nAll relative URLs will work within that website\r\n\r\n3. 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.\r\nGithub will serve this website from https://facebook.github.io/react-native/ URL.\r\nAll relative URLs will work within that website\r\n\r\nI have tested this in a fork, this is the example:\r\nhttp://bestander.github.io/react-native/\r\nhttp://bestander.github.io/react-native/releases/next\r\nhttp://bestander.github.io/react-native/releases/0.40\r\nhttp://bestander.github.io/react-native/releases/0.41\r\n\r\nCaveats: Searchdocs algolia works only with stable version of website, so it will redirect from a versioned to the stable one.\r\n\r\nNext steps:\r\n- widget/page to switch between versions of websites (still to decide)\r\n- (?) simple UI indication mechanism that you are observing not latest/stable docs"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/181993819","html_url":"https://github.com/facebook/react-native/pull/5760#issuecomment-181993819","issue_url":"https://api.github.com/repos/facebook/react-native/issues/5760","id":181993819,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T18:30:22Z","updated_at":"2016-02-09T18:30:22Z","body":"@bestander updated the pull request."}}