Basic automation for publishing documentation
This commit is contained in:
1 parent
e45ea65e45
commit
6bc601bbfc
6 files changed
+54
No files matched your search
@@ -0,0 +1,3 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
gem 'jekyll'
|
||||
@@ -2,3 +2,9 @@ markdown: redcarpet
|
||||
|
||||
redcarpet:
|
||||
extensions: ['fenced_code_blocks', 'smart']
|
||||
|
||||
exclude:
|
||||
- 'Gemfile'
|
||||
- 'Gemfile.lock'
|
||||
- 'params.json'
|
||||
- 'build-and-publish.sh'
|
||||
Executable
+14
@@ -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}
|
||||
Reference in new issue
Block a user