Mustafa Ozcelikors | 059900d | 2017-08-24 20:05:33 +0200 | [diff] [blame] | 1 | # This is for building automatically using a Travis docker, and then deploying to Github Pages |
| 2 | |
| 3 | language: python |
| 4 | |
| 5 | python: |
| 6 | - 3.6 |
| 7 | |
| 8 | before_install: |
| 9 | - sudo apt-get install python-pip |
| 10 | |
| 11 | install: |
| 12 | - pip install sphinx |
| 13 | - pip install sphinx_rtd_theme |
| 14 | |
| 15 | script: |
| 16 | - sphinx-build -b html docs/howtosetup/source/ docs/howtosetup/build/ |
| 17 | - cd docs/howtosetup |
| 18 | - make html |
| 19 | |
| 20 | deploy: |
| 21 | provider: pages |
| 22 | skip_cleanup: true |
| 23 | github_token: $GITHUB_TOKEN #Create token from Github and Set in travis-ci.org dashboard |
| 24 | local_dir: ./build/html/ |
| 25 | on: |
| 26 | branch: master |
| 27 | |
| 28 | # In conf.py, be sure to add: extensions = ['sphinx.ext.githubpages'] |