Browse Source

Clean sphinx docs before building.

4.2
Darko Poljak 6 years ago
parent
commit
ccbb9697eb
  1. 4
      Makefile
  2. 2
      bin/build-helper
  3. 2
      bin/build-helper.freebsd

4
Makefile

@ -38,6 +38,7 @@ PYTHON_VERSION=cdist/version.py
SPHINXM=make -C $(DOCS_SRC_DIR) man
SPHINXH=make -C $(DOCS_SRC_DIR) html
SPHINXC=make -C $(DOCS_SRC_DIR) clean
################################################################################
# Manpages
#
@ -71,6 +72,9 @@ html: $(MANTYPES) $(DOCSREF) $(PYTHON_VERSION)
docs: man html
docs-clean:
$(SPHINXC)
# Manpages #5: release part
MANWEBDIR=$(WEBBASE)/man/$(CHANGELOG_VERSION)
HTMLBUILDDIR=docs/dist/html

2
bin/build-helper

@ -284,6 +284,8 @@ eof
"$0" check-unittest
# Generate documentation (man and html)
# First, clean old generated docs
make docs-clean
make docs
# Generate speeches (indirect check if they build)

2
bin/build-helper.freebsd

@ -319,6 +319,8 @@ eof
"$0" check-unittest
# Generate documentation (man and html)
# First, clean old generated docs
make helper=${helper} WEBDIR=${WEBDIR} docs-clean
make helper=${helper} WEBDIR=${WEBDIR} docs
# Generate speeches (indirect check if they build)

Loading…
Cancel
Save