refactor and test doc deployment

This commit is contained in:
Devin Neal 2019-05-28 00:13:27 -07:00
parent f3f0e3ba03
commit 969bcf4154
3 changed files with 13 additions and 5 deletions

View file

@ -21,11 +21,7 @@ script:
- python setup.py test
- python setup.py bdist_wheel
after_success:
- pip install sphinx_rtd_theme
- make --directory docs/ html
- openssl aes-256-cbc -K $encrypted_1b28e850a424_key -iv $encrypted_1b28e850a424_iv -in travis/crypt.enc -out travis/crypt -d
- tar xf travis/crypt
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && travis/deploy_docs.sh
- test $TRAVIS_BRANCH = "master" && test $TRAVIS_PULL_REQUEST = "false" && travis/build_docs.sh
deploy:
provider: pypi
user: eulertour

View file

@ -6,6 +6,8 @@
Welcome to Manim's documentation!
=================================
test change
.. toctree::
:maxdepth: 2
:caption: Contents:

10
travis/build_docs.sh Normal file
View file

@ -0,0 +1,10 @@
#!/bin/bash
pip install sphinx_rtd_theme
make --directory docs/ html
openssl aes-256-cbc -K $encrypted_1b28e850a424_key \
-iv $encrypted_1b28e850a424_iv \
-in travis/crypt.enc \
-out travis/crypt -d
tar xf travis/crypt
travis/deploy_docs.sh