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 b683dc9 commit de8b849
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 19 deletions.
15 changes: 8 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -288,19 +288,22 @@ pydeps tensorwaves \
[tool.pixi.feature.dev.tasks.doc]
cmd = """
sphinx-build \
--builder dirhtml \
--fail-on-warning \
--keep-going \
-TW \
-b dirhtml \
--show-traceback \
docs/ docs/_build/html
"""
env = {FORCE_COLOR = "yes"}

[tool.pixi.feature.dev.tasks.doclive]
cmd = """
sphinx-autobuild \
--builder dirhtml \
--open-browser \
--re-ignore '.*/.ipynb_checkpoints/.*' \
--re-ignore '.*/__pycache__/.*' \
--re-ignore '.*/.ipynb_checkpoints/.*' \
--re-ignore 'docs/_build/.*' \
--re-ignore 'docs/.*\\.csv' \
--re-ignore 'docs/.*\\.gif' \
--re-ignore 'docs/.*\\.gv' \
Expand All @@ -311,13 +314,11 @@ sphinx-autobuild \
--re-ignore 'docs/.*\\.svg' \
--re-ignore 'docs/.*\\.yaml' \
--re-ignore 'docs/.*\\.yml' \
--re-ignore 'docs/_build/.*' \
--re-ignore 'docs/api/.*' \
--re-ignore 'docs/usage/logs/.*' \
--re-ignore docs/usage/sub_expr_f? \
--watch docs \
--watch src \
-b dirhtml \
docs/ docs/_build/html
"""
env = {FORCE_COLOR = "yes"}
Expand All @@ -341,8 +342,8 @@ pytest \
[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
26 changes: 14 additions & 12 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
--builder dirhtml \
--fail-on-warning \
--keep-going \
-TW \
-b dirhtml \
--show-traceback \
docs/ docs/_build/html
description =
Build documentation and API through Sphinx
Expand All @@ -64,9 +65,11 @@ allowlist_externals =
sphinx-autobuild
commands =
sphinx-autobuild \
--builder dirhtml \
--open-browser \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*/__pycache__/.* \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore docs/_build/.* \
--re-ignore docs/.*\.csv \
--re-ignore docs/.*\.gif \
--re-ignore docs/.*\.gv \
Expand All @@ -77,13 +80,11 @@ commands =
--re-ignore docs/.*\.svg \
--re-ignore docs/.*\.yaml \
--re-ignore docs/.*\.yml \
--re-ignore docs/_build/.* \
--re-ignore docs/api/.* \
--re-ignore docs/usage/logs/.* \
--re-ignore docs/usage/sub_expr_f? \
--watch docs \
--watch src \
-b dirhtml \
docs/ docs/_build/html
description =
Set up a server to directly preview changes to the HTML pages
Expand All @@ -96,9 +97,10 @@ allowlist_externals =
sphinx-build
commands =
sphinx-build \
--builder dirhtml \
--fail-on-warning \
--keep-going \
-TW \
-b dirhtml \
--show-traceback \
docs/ docs/_build/html
description =
Build documentation through Sphinx WITH output of Jupyter notebooks
Expand All @@ -112,9 +114,11 @@ allowlist_externals =
sphinx-autobuild
commands =
sphinx-autobuild \
--builder dirhtml \
--open-browser \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore .*/__pycache__/.* \
--re-ignore .*/.ipynb_checkpoints/.* \
--re-ignore docs/_build/.* \
--re-ignore docs/.*\.csv \
--re-ignore docs/.*\.gif \
--re-ignore docs/.*\.gv \
Expand All @@ -125,13 +129,11 @@ commands =
--re-ignore docs/.*\.svg \
--re-ignore docs/.*\.yaml \
--re-ignore docs/.*\.yml \
--re-ignore docs/_build/.* \
--re-ignore docs/api/.* \
--re-ignore docs/usage/logs/.* \
--re-ignore docs/usage/sub_expr_f? \
--watch docs \
--watch src \
-b dirhtml \
docs/ docs/_build/html
description =
Set up a server to directly preview changes to the HTML pages
Expand Down Expand Up @@ -165,8 +167,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 de8b849

Please sign in to comment.