Skip to content

Commit

Permalink
Merge pull request #146 from ocefpaf/versioned_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf committed Oct 5, 2020
1 parent 29b8292 commit 767bc6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,9 @@ script:
pushd docs
make clean html linkcheck
popd
if [[ -z "$TRAVIS_TAG" ]]; then
python -m doctr deploy --build-tags --key-path github_deploy_key_ioos_erddapy.enc --built-docs docs/build/html dev
else
python -m doctr deploy --build-tags --key-path github_deploy_key_ioos_erddapy.enc --built-docs docs/build/html "version-$TRAVIS_TAG"
python -m doctr deploy --build-tags --key-path github_deploy_key_ioos_erddapy.enc --built-docs docs/build/html .
fi
if [ ! -z "$TRAVIS_TAG" ]; then DEPLOY_DIR="$TRAVIS_TAG"; else DEPLOY_DIR="$TRAVIS_BRANCH"; fi
doctr deploy --command=doctr-versions-menu --no-require-master --build-tags "$DEPLOY_DIR"
fi
deploy:
Expand Down
1 change: 1 addition & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"sphinx.ext.viewcode",
"sphinx.ext.napoleon",
"nbsphinx",
"doctr_versions_menu",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ black
cartopy
check-manifest
doctr
doctr-versions-menu
flake8
flake8-builtins
flake8-comprehensions
Expand Down

0 comments on commit 767bc6b

Please sign in to comment.