Skip to content

Commit

Permalink
Cleanup and disable linkcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHeybrock committed May 19, 2022
1 parent 8fb761b commit fbb4822
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
python-version: 3.8
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements/ci.txt
- run: tox --skip-pkg-install -e docs2 scippnexus
- run: tox --skip-pkg-install -e docs scippnexus
if: ${{ github.event.inputs.publish == 'true' || inputs.publish }}
- run: tox -e docs2
- run: tox -e docs
if: ${{ !(github.event.inputs.publish == 'true' || inputs.publish) }}
- uses: actions/upload-artifact@v3
with:
Expand Down
18 changes: 6 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,26 +12,20 @@ basepython = python3.8
deps = -r requirements/test-lowest.txt
commands = pytest

[testenv:docs2]
[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
deps =
{posargs:}
-r requirements/docs.txt
deps = {posargs:}
-r requirements/docs.txt
allowlist_externals=find
commands = python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b doctest -d {toxworkdir}/docs_doctrees docs html
find html -type f -name "*.ipynb" -not -path "html/_sources/*" -delete

[testenv:docs]
description = invoke sphinx-build to build the HTML docs
basepython = python3.8
[testenv:linkcheck]
description = Run Sphinx linkcheck
deps = -r requirements/docs.txt
allowlist_externals=find
commands = python -m sphinx -j2 -v -b html -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b doctest -d {toxworkdir}/docs_doctrees docs html
python -m sphinx -j2 -v -b linkcheck -d {toxworkdir}/docs_doctrees docs html
find html -type f -name "*.ipynb" -not -path "html/_sources/*" -delete
commands = python -m sphinx -j2 -v -b linkcheck -d {toxworkdir}/docs_doctrees docs html

[testenv:static]
description = Code formatting and static analysis
Expand Down

0 comments on commit fbb4822

Please sign in to comment.