Skip to content

Commit

Permalink
MAINT: write sphinx-build flags full
Browse files Browse the repository at this point in the history
  • Loading branch information
redeboer committed Sep 11, 2024
1 parent f5b129f commit a5a6b95
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
18 changes: 9 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -241,34 +241,34 @@ pytest tests/unit \
[tool.pixi.feature.dev.tasks.doc]
cmd = """
sphinx-build \
--builder html \
--keep-going \
-TW \
-b html \
--show-traceback --fail-on-warning \
docs/ docs/_build/html
"""
env = {FORCE_COLOR = "yes"}

[tool.pixi.feature.dev.tasks.doclive]
cmd = """
sphinx-autobuild \
--builder html \
--open-browser \
--re-ignore '.*/.ipynb_checkpoints/.*' \
--re-ignore '.*/__pycache__/.*' \
--re-ignore '.*/.ipynb_checkpoints/.*' \
--re-ignore '.*\\.tmp' \
--re-ignore 'docs/_build/.*' \
--re-ignore 'docs/_images/.*' \
--re-ignore 'docs/_static/logo\\..*' \
--re-ignore 'docs/.*\\.csv' \
--re-ignore 'docs/.*\\.gv' \
--re-ignore 'docs/.*\\.inv' \
--re-ignore 'docs/.*\\.json' \
--re-ignore 'docs/.*\\.pickle' \
--re-ignore 'docs/.*\\.yaml' \
--re-ignore 'docs/.*\\.yml' \
--re-ignore 'docs/_build/.*' \
--re-ignore 'docs/_images/.*' \
--re-ignore 'docs/_static/logo\\..*' \
--re-ignore 'docs/api/.*' \
--watch docs \
--watch src \
-b html \
docs/ docs/_build/html
"""
env = {FORCE_COLOR = "yes"}
Expand All @@ -288,8 +288,8 @@ env = {EXECUTE_NB = "yes", FORCE_COLOR = "yes", PYTHONHASHSEED = "0"}
[tool.pixi.feature.dev.tasks.linkcheck]
cmd = """
sphinx-build \
-T \
-b linkcheck \
--builder linkcheck \
--show-traceback \
docs/ docs/_build/linkcheck
"""
env = {FORCE_COLOR = "yes"}
Expand Down
37 changes: 19 additions & 18 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
--builder html \
--fail-on-warning \
--keep-going \
-TW \
-b html \
--show-traceback \
docs/ docs/_build/html
description =
Build documentation and API through Sphinx
Expand All @@ -47,24 +48,24 @@ allowlist_externals =
sphinx-autobuild
commands =
sphinx-autobuild \
--builder html \
--open-browser \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*/__pycache__/.* \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*\.tmp \
--re-ignore docs/_build/.* \
--re-ignore docs/_images/.* \
--re-ignore docs/_static/logo\..* \
--re-ignore docs/.*\.csv \
--re-ignore docs/.*\.gv \
--re-ignore docs/.*\.inv \
--re-ignore docs/.*\.json \
--re-ignore docs/.*\.pickle \
--re-ignore docs/.*\.yaml \
--re-ignore docs/.*\.yml \
--re-ignore docs/_build/.* \
--re-ignore docs/_images/.* \
--re-ignore docs/_static/logo\..* \
--re-ignore docs/api/.* \
--watch docs \
--watch src \
-b html \
docs/ docs/_build/html
description =
Set up a server to directly preview changes to the HTML pages
Expand All @@ -77,9 +78,9 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
--builder html \
--keep-going \
-TW \
-b html \
--show-traceback --fail-on-warning \
docs/ docs/_build/html
description =
Build documentation through Sphinx WITH output of Jupyter notebooks
Expand All @@ -94,24 +95,24 @@ allowlist_externals =
sphinx-autobuild
commands =
sphinx-autobuild \
--builder html \
--open-browser \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*/__pycache__/.* \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*\.tmp \
--re-ignore docs/_build/.* \
--re-ignore docs/_images/.* \
--re-ignore docs/_static/logo\..* \
--re-ignore docs/.*\.csv \
--re-ignore docs/.*\.gv \
--re-ignore docs/.*\.inv \
--re-ignore docs/.*\.json \
--re-ignore docs/.*\.pickle \
--re-ignore docs/.*\.yaml \
--re-ignore docs/.*\.yml \
--re-ignore docs/_build/.* \
--re-ignore docs/_images/.* \
--re-ignore docs/_static/logo\..* \
--re-ignore docs/api/.* \
--watch docs \
--watch src \
-b html \
docs/ docs/_build/html
description =
Set up a server to directly preview changes to the HTML pages
Expand All @@ -126,9 +127,9 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
--builder html \
--fail-on-warning \
--keep-going \
-b html \
-nW \
docs/ docs/_build/html
description =
Execute ALL Jupyter notebooks and build documentation with Sphinx
Expand All @@ -152,8 +153,8 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
-T \
-b linkcheck \
--builder linkcheck \
--show-traceback \
docs/ docs/_build/linkcheck
description =
Check external links in the documentation (requires internet connection)
Expand Down

0 comments on commit a5a6b95

Please sign in to comment.