Skip to content

Commit

Permalink
tools: add sphinx-autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tigarmo authored and sergiusens committed Feb 3, 2023
1 parent ec396df commit 34e0222
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,14 @@ dev = [
types = [
]
docs = [
"furo==2022.12.07",
"sphinx==5.3.0",
"sphinx-autobuild==2021.3.14",
"sphinx-copybutton==0.5.1",
"sphinx-design==0.3.0",
"sphinx-pydantic==0.1.1",
"sphinx-toolbox==3.4.0",
"sphinx-lint==0.6.7",
"furo==2022.12.07",
]

[build-system]
Expand Down
5 changes: 5 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ commands_pre = bash -c 'if [[ ! -e docs ]];then echo "No docs directory. Run `to
# "-W" is to treat warnings as errors
commands = sphinx-build {posargs:-b html} -W {tox_root}/docs {tox_root}/docs/_build

[testenv:rundocs]
description = Build documentation with an autoupdating server
base = docs
commands = sphinx-autobuild {posargs:-b html --open-browser --port 8080} -W --watch {tox_root}/starcraft {tox_root}/docs {tox_root}/docs/_build

[testenv:lint-docs]
description = Lint the documentation with sphinx-lint
base = docs
Expand Down

0 comments on commit 34e0222

Please sign in to comment.