Skip to content

Commit

Permalink
Add: Allow to auto re-build the docs on changes via livehtml
Browse files Browse the repository at this point in the history
Introduce a new makefile target livehtml that re-builds the docs
automatically via the sphinx-autobuild package in the background.
  • Loading branch information
bjoernricks committed Sep 1, 2023
1 parent ed2e5fc commit cfc22ea
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 32 deletions.
5 changes: 4 additions & 1 deletion docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ BUILDDIR = build
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile
livehtml:
sphinx-autobuild "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile livehtml

# 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
105 changes: 74 additions & 31 deletions 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 @@ -52,6 +52,7 @@ sphinx = "^5.3.0"
coverage = "^7.2"
rope = "^1.9.0"
furo = "^2023.3.27"
sphinx-autobuild = ">=2021.3.14"

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

0 comments on commit cfc22ea

Please sign in to comment.