Skip to content

Commit

Permalink
Setup docs to build in travis with doctr (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
snowman2 authored Dec 13, 2019
1 parent efcae58 commit e235608
Show file tree
Hide file tree
Showing 156 changed files with 35 additions and 31,796 deletions.
35 changes: 27 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
# System specifications for Travis CI
#-------------------------------------------------------------------------------
language: c
os:
- linux
- osx
env:
# - PYTHON_VERSION="3.5"
# geopandas has conflicts with python 3.5
- PYTHON_VERSION="3.6"
# - PYTHON_VERSION="3.7"
# datacube has dependency that is not available on python 3.7
global:
# Doctr deploy key for corteva/geocube
- secure: "Bdg1k0ld0Gdw5sOvL6gKRS6vQi4ICbv9OZb0uo6RgvJmbVcpNJl+D8sRCelFWUi4yVNtk3EnAVM5vIF8BtuokZsnXWH98AxWf5uTQjubgb+ycpODVNcJf+ptCA4CItY1xHSuRXzwm7EDuXh4OzXpKKlgYaa1abMUu8mJC+j6D/Uhbnv7iEDpQ7HOLYAPYVmBhflXVFrIpC2YvoZ9S7A+f6M0oiGRU+cKM1jT0O72tiq5/wLpAzpRuDRSa46Ul+soZKmjONrPqYpAuXAFIeSyluXFeJ31ghQ6ydv7n6CNAZ6pR7LIQWjQyRLd9W5TxxUuiMOfIqKeOeCIA6nGldbLUAAM1kYuNOew0SR/7ISlY2dcTU4hHgnCBQt7uCr6XY/4SNmszfyCuMyzqc1ZvM/vlPnUJX9WxeUuUEgxVNXD1y3IZADRIO7kIIo6CmCPaGEEgvf8bEOjroFYL6NR8qfjMEQ+tR1Jz0Qu5cTeTUueadrYaZmDcLOCSLI8dk+X4eSanF+Q838H8jPTdgriLWtdlqytItzVKYjDDhRF5aPk8RLZXlqEczqoO8oNl6dSeR9TU3f1glr4CEkwQoNnWE/ndax0Xqm1itgQEYW7q5lDOFY8Gp7uVCVz6Inktj+xViAdyaVydMhCG2DgF/SBuS/wivqpZarNEanrOI5NcBBmlVE="
matrix:
include:
- os: osx
env:
- PYTHON_VERSION=3.6
- os: linux
env:
- PYTHON_VERSION=3.6
- DOC=true

notifications:
email: false

Expand Down Expand Up @@ -44,6 +49,20 @@ script:
- py.test --cov-report term-missing --cov=geocube
- make check
- geocube --version
# Building and uploading docs with doctr
- set -e
- |
if [ "$DOC" ]; then
sudo apt-get install -qq pandoc
make docs
pip install doctr
if [[ -z "$TRAVIS_TAG" ]]; then
DEPLOY_DIR=latest;
else
DEPLOY_DIR="$TRAVIS_TAG";
fi
doctr deploy --build-tags --built-docs docs/_build/html $DEPLOY_DIR
fi
after_success:
# Coveralls stats for code coverage
Expand Down
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,10 @@ test: ## run tests quickly with the default Python
py.test

docs: ## generate Sphinx HTML documentation, including API docs
$(MAKE) -C sphinx clean
$(MAKE) -C sphinx html
$(MAKE) -C docs clean
$(MAKE) -C docs html

docs-browser: docs ## generate Sphinx HTML documentation, including API docs
$(BROWSER) docs/html/index.html

release: dist ## package and upload a release
Expand Down
Empty file removed docs/.nojekyll
Empty file.
2 changes: 1 addition & 1 deletion sphinx/Makefile → docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPHINXOPTS =
SPHINXBUILD = python -msphinx
SPHINXPROJ = geocube
SOURCEDIR = .
BUILDDIR = ../docs
BUILDDIR = _build

# Put it first so that "make" without argument is like "make help".
help:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions docs/html/.buildinfo

This file was deleted.

Binary file removed docs/html/_images/examples_categorical_13_1.png
Binary file not shown.
Binary file removed docs/html/_images/examples_categorical_16_1.png
Binary file not shown.
Binary file removed docs/html/_images/examples_categorical_4_1.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
296 changes: 0 additions & 296 deletions docs/html/_modules/geocube/api/core.html

This file was deleted.

Loading

0 comments on commit e235608

Please sign in to comment.