mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-22 15:13:50 -06:00
5adc07ae55
Unfortunately, using pydata_sphinx_theme extension generates warnings in sphix processing. These warnings cause documentation build to be considered a failure: WARNING: the pydata_sphinx_theme extension is not safe for parallel writing WARNING: doing serial write .... build finished with problems, 2 warnings. make: *** [Makefile:24: html] Error 1 Since the build is already doing a serial write, enforce it from start. Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com> Reviewed-By: Francisco Trivino <ftrivino@redhat.com>
40 lines
1.1 KiB
Makefile
40 lines
1.1 KiB
Makefile
# Minimal makefile for Sphinx documentation
|
|
#
|
|
|
|
# You can set these variables from the command line, and also
|
|
# from the environment for the first two.
|
|
PYTHON ?= python3
|
|
VENVDIR = ./.venv
|
|
SPHINXOPTS ?= -W --keep-going -j 1
|
|
SPHINXBUILD ?= PATH=$(VENVDIR)/bin:$$PATH sphinx-build
|
|
SOURCEDIR = .
|
|
BUILDDIR = _build
|
|
|
|
# Put it first so that "make" without argument is like "make help".
|
|
help:
|
|
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
@echo " lint to check and lint documentation"
|
|
@echo " venv to create an isolated venv"
|
|
|
|
.PHONY: help Makefile
|
|
|
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
|
%: Makefile
|
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
|
|
|
.PHONY: lint
|
|
lint:
|
|
$(MAKE) html SPHINXOPTS="$(SPHINXOPTS) -E -a"
|
|
|
|
.PHONY: distclean
|
|
distclean: clean
|
|
rm -rf $(VENVDIR)
|
|
|
|
.PHONY: venv
|
|
venv:
|
|
$(PYTHON) -m venv $(VENVDIR)
|
|
$(VENVDIR)/bin/python3 -m pip install -U pip setuptools
|
|
$(VENVDIR)/bin/python3 -m pip install -U -r ./requirements.txt \
|
|
-c constraints.txt
|