From f162735017c7cf33110f03954028980b1589e11f Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Fri, 17 Jan 2020 13:29:50 +0100 Subject: [PATCH 1/3] Add sphinx-rtd-theme to "docs" extra dependencies --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index 254fbad0..dd982353 100644 --- a/setup.py +++ b/setup.py @@ -87,6 +87,7 @@ 'sphinx>=1.5', 'nbsphinx>=0.2.13', 'nbsphinx-link', + 'sphinx-rtd-theme', ] }, 'packages': [name], # Manually specify here, update after autogen From 5834e9b8cbb3ea1a21c05de9e0f4b57ce0c764c4 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Fri, 17 Jan 2020 13:39:58 +0100 Subject: [PATCH 2/3] Travis-CI: install pandoc --- .travis.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.travis.yml b/.travis.yml index da163075..f56c799a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,10 @@ matrix: include: - python: 3.5 env: GROUP=docs + addons: + apt: + packages: + - pandoc cache: pip: true directories: From a68b8e2eac30954e51af483b8f53d34d0d2daca6 Mon Sep 17 00:00:00 2001 From: Matthias Geier Date: Fri, 17 Jan 2020 13:46:41 +0100 Subject: [PATCH 3/3] Travis-CI: make script selection a bit nicer (arguably) --- .travis.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.travis.yml b/.travis.yml index f56c799a..be0cf059 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,6 +17,12 @@ matrix: apt: packages: - pandoc + script: + - cd docs + - make html + - make linkcheck + - cd .. + - python -m pytest_check_links cache: pip: true directories: @@ -27,15 +33,4 @@ before_install: install: - pip install --upgrade -e ".[test, examples, docs]" script: - - | - if [[ $GROUP == python ]]; then - py.test -l --nbval-lax --current-env examples; - elif [[ $GROUP == docs ]]; then - EXIT_STATUS=0 - cd docs - make html || EXIT_STATUS=$? - make linkcheck || EXIT_STATUS=$? - cd .. - python -m pytest_check_links || EXIT_STATUS=$? ; - (exit $EXIT_STATUS) - fi + - py.test -l --nbval-lax --current-env examples