Skip to content

Commit

Permalink
Add: Add sphinx- autobuild for rebuilding the docs automatically
Browse files Browse the repository at this point in the history
cd docs && make livehtml can be used to start a web server that rebuilds
the docs automatically if some file has changed.
  • Loading branch information
bjoernricks committed Mar 8, 2023
1 parent 421f019 commit 7f23202
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ BUILDDIR = _build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
.PHONY: help livehtml Makefile

livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand Down
59 changes: 58 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ coverage = "^7.2"
myst-parser = "^0.19.1"
Sphinx = "^5.3.0"
furo = "^2022.12.7"
sphinx-autobuild = "^2021.3.14"

[tool.black]
line-length = 80
Expand Down

0 comments on commit 7f23202

Please sign in to comment.