Basic automation for publishing documentation

This commit is contained in:
Ilya Dmitrichenko committed 2015-04-27 17:46:34 +01:00
1 parent e45ea65e45
commit 6bc601bbfc
6 files changed
+54

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
source 'https://rubygems.org'
gem 'jekyll'
+6
View File
@@ -2,3 +2,9 @@ markdown: redcarpet
redcarpet:
extensions: ['fenced_code_blocks', 'smart']
exclude:
- 'Gemfile'
- 'Gemfile.lock'
- 'params.json'
- 'build-and-publish.sh'
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh -ex
cd $(dirname $0)/
## Use GCS until we set up Route53/CloudFront/S3
BRANCH=${TRAVIS_BRANCH:-`git rev-parse --abbrev-ref @`}
COMMIT=${TRAVIS_COMMIT:-`git rev-parse @`}
export BRANCH COMMIT
bundle install --path=.bundle
bundle exec jekyll build --verbose
gsutil -m cp -z html,css -a public-read -R _site gs://docs.weave.works/weave/${BRANCH}/${COMMIT}