Skip to content

Commit

Permalink
feat(docs): versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
mkucharz committed Feb 14, 2018
1 parent adfdcf1 commit 83c4829
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@ jobs:
- run: echo 'export SYNCANO_PROJECT_INSTANCE=syncano-docs-${CIRCLE_BRANCH}' >> $BASH_ENV
- run: node packages/cli/lib/cli.js deploy
- run: node packages/cli/lib/cli.js hosting sync docs
- run: node packages/cli/lib/cli.js hosting config docs --cname ${CIRCLE_BRANCH}.docs.syncano.io
- run: node packages/cli/lib/cli.js hosting sync cookbook
- run: node packages/cli/lib/cli.js hosting config cookbook --cname ${CIRCLE_BRANCH}.cookbook.syncano.io
- run: node packages/cli/lib/cli.js hosting sync cheatsheet
- run: node packages/cli/lib/cli.js hosting config cheatsheet --cname ${CIRCLE_BRANCH}.cheatsheet.syncano.io

deploy_test_registry:
name: Deploying Test Registry
Expand Down
6 changes: 6 additions & 0 deletions docs/cheatsheet/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
<div class="c-header__tab">
<a data-tab="socket" href="#socket">Socket</a>
</div>
<div>
<select data-version>
<option value="canary">canary (experimental)</option>
<option value="0">0 (current)</option>
</select>
</div>
</header>

<div class="c-columns" data-tabs>
Expand Down
7 changes: 7 additions & 0 deletions docs/cheatsheet/web/script.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions docs/cookbook/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,10 @@
analytics.page();
}}();
</script>
<script>
$select.addEventListener('change', event => {
const version = event.target.value
window.location.href = `https://${version}.docs.syncano.io`
})
</script>
</html>
5 changes: 4 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"lerna": "2.4.0",
"version": "0.8.0",
"packages": [
"packages/*",
"packages/registry/syncano/organization",
Expand All @@ -10,13 +11,15 @@
"exact": true
},
"publish": {
"publish": {
"allowBranch": "master"
},
"exact": true,
"ignore": [
"@syncano/registry*"
]
}
},
"version": "0.8.0",
"changelog": {
"repo": "syncano/syncano-node",
"labels": {
Expand Down

0 comments on commit 83c4829

Please sign in to comment.