Skip to content

Commit

Permalink
wip: sphinx-autobuild
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaqq committed Aug 20, 2024
1 parent 7a5513a commit 0a4ff80
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import sys
import os

sys.path.append('./')
sys.path.append(os.path.abspath('.'))
from custom_conf import *
sys.path.append('.sphinx/')
sys.path.append(os.path.abspath('.sphinx/'))
from build_requirements import *

# Configuration file for the Sphinx documentation builder.
Expand Down
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,16 @@ commands_pre =
commands =
sphinx-build -W --keep-going docs/ docs/_build/html

[testenv:docs-live]
description = Live development: build the Sphinx docs with autoreloading enabled
deps =
{[testenv:docs]deps}
sphinx-autobuild
commands_pre =
{[testenv:docs]commands_pre}
commands =
sphinx-autobuild docs/ docs/_build/html --watch docs --port 8000

[testenv:fmt]
description = Apply coding style standards to code
deps =
Expand Down

0 comments on commit 0a4ff80

Please sign in to comment.