Skip to content

Commit

Permalink
docs(travis): Added documentation deployment to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Mar 14, 2019
1 parent 8831548 commit 32b8c8b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,16 @@ jobs:
- git config --global user.email "release@ladybug.tools"
- pip install python-semantic-release
- semantic-release publish
# generate updated documentation
- pip install Sphinx sphinxcontrib-fulltoc sphinx_bootstrap_theme
- sphinx-apidoc -f -e -d 4 -o ./docs ./ladybug ./ladybug/euclid.py
- sphinx-build -b html ./docs ./docs/_build/docs
# deploy to github pages
# https://docs.travis-ci.com/user/deployment/pages/
provider: pages
skip_cleanup: true
github-token: $GH_TOKEN
keep-history: false
on:
branch: master
local_dir: docs/_build/
1 change: 1 addition & 0 deletions docs/_build/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# place holder for documentation
4 changes: 3 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
author = 'Ladybug Tools'

# The short X.Y version
version = '0.2.0'
import ladybug
version = ladybug.__version__

# The full version, including alpha/beta/rc tags
release = ''

Expand Down

0 comments on commit 32b8c8b

Please sign in to comment.