kopia lustrzana https://github.com/collective/icalendar
Merge pull request #674 from collective/673-add-sphinx-autobuild
Add `sphinx-autobuild` for `livehtml` Makefile targetpull/667/head
commit
a7062b9c47
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
Sphinx>=1.2.3
|
||||
sphinx_rtd_theme
|
||||
sphinx-autobuild
|
||||
.
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue