Skip to content

Commit

Permalink
Trying new workflow for building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
wblumberg committed Sep 12, 2019
1 parent dbe6e32 commit fe50259
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/build_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ set -e

echo "Installing sphinx, etc. to build the documentation ..."
cd "$TRAVIS_BUILD_DIR"
conda install -q -c anaconda sphinx sphinx_rtd_theme
conda install -q -c conda-forge sphinx-gallery
pip install sphinx-prompt

# Swap out conda environments for one that supports building the documentation
conda deactivate
conda activate devel
conda env create -f ci/docs_env.yml
conda activate docs-env

echo "Adding the SSH key ..."
cd ci/
Expand Down
22 changes: 22 additions & 0 deletions ci/docs_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: docs-env
channels:
- conda-forge
- conda-forge/label/testing
- anaconda
dependencies:
- python=3
- numpy=1.15.*
- pyside2=5.13.*
- sphinx
- pytest
- qtpy
- sphinx_rtd_theme
- sphinx-gallery
- requests
- python-dateutil
- pyinstaller
- setuptools
- pip
- pip:
- sphinx-prompt
- pydocstyle

0 comments on commit fe50259

Please sign in to comment.