Merge pull request #674 from collective/673-add-sphinx-autobuild

Add `sphinx-autobuild` for `livehtml` Makefile target
pull/667/head
Nicco Kunzmann 2024-07-01 22:23:45 +01:00 zatwierdzone przez GitHub
commit a7062b9c47
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
3 zmienionych plików z 15 dodań i 6 usunięć

Wyświetl plik

@ -63,6 +63,7 @@ New features:
- Test compatibility with Python 3.12
- Add function ``icalendar.use_pytz()``.
- Add `sphinx-autobuild` for `livehtml` Makefile target.
Bug fixes:

Wyświetl plik

@ -2,11 +2,12 @@
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
PAPER =
BUILDDIR = _build
LOCALESDIR = _locales
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SPHINXAUTOBUILD = sphinx-autobuild
PAPER =
BUILDDIR = _build
LOCALESDIR = _locales
# Internal variables.
PAPEROPT_a4 = -D latex_paper_size=a4
@ -15,7 +16,7 @@ ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
.PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext livehtml
help:
@echo "Please use \`make <target>' where <target> is one of"
@ -159,3 +160,9 @@ doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
@echo "Testing of doctests in the sources finished, look at the " \
"results in $(BUILDDIR)/doctest/output.txt."
livehtml:
$(SPHINXAUTOBUILD) \
--ignore "*.swp" \
--port 8050 \
-b html . "$(BUILDDIR)/html" $(SPHINXOPTS) $(O)

Wyświetl plik

@ -1,3 +1,4 @@
Sphinx>=1.2.3
sphinx_rtd_theme
sphinx-autobuild
.