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 ac6b5fe
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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
on:
branch: master

0 comments on commit ac6b5fe

Please sign in to comment.