Skip to content

Commit

Permalink
ci: use travis to automatically build documentation
Browse files Browse the repository at this point in the history
Currently, HTML pages must be built manually through:
        cd docs && rake

This is not very practical and there are good chances that the doc will
soon fall out of sync. To prevent that, use Travis to build the
documentation and push it to `netdsa/netdsa.github.io`. That way, online
documentation should always be in sync with the code.
  • Loading branch information
d-k-c committed Mar 15, 2018
1 parent a835668 commit fed2b04
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: ruby
rvm:
- 2.2

branches:
only:
master

install: gem install asciidoctor

script: cd docs && rake

deploy:
provider: pages
local-dir: docs
repo: netdsa/netdsa.github.io
skip-cleanup: true
github-token: $GITHUB_TOKEN
keep-history: true
target-branch: master

0 comments on commit fed2b04

Please sign in to comment.