Skip to content

Commit

Permalink
fix: add link check tox env
Browse files Browse the repository at this point in the history
  • Loading branch information
Revathyvenugopal162 committed Jun 10, 2024
1 parent a5e4be0 commit a4fd62c
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ envlist =
code-style
doc-style
{py38,py39,py310,py311,py312}{,-coverage}
doc
doc-{links,html}
skip_missing_interpreters = true
isolated_build = true
isolated_build_env = build
Expand Down Expand Up @@ -43,8 +43,14 @@ commands =
vale sync --config="{toxinidir}/doc/.vale.ini"
vale --config="{toxinidir}/doc/.vale.ini" "{toxinidir}/doc"

[testenv:doc]
[testenv:doc-{links, html}]
description = Check if documentation generates properly
setenv =
links: BUILDER = linkcheck
html: BUILDER = html
passenv =
BUILD_API
BUILD_EXAMPLES
extras = doc
commands =
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxworkdir}/doc_out" --color -vW -bhtml
sphinx-build -d "{toxworkdir}/doc_doctree" doc/source "{toxinidir}/doc/_build/{env:BUILDER}" --color -vW -b {env:BUILDER} -j auto

0 comments on commit a4fd62c

Please sign in to comment.