From 3eedf8bfc7e35a622a20ac04d535bf25cc3ac3d7 Mon Sep 17 00:00:00 2001 From: David Douard <david.douard@sdfa3.org> Date: Tue, 28 Nov 2023 11:34:06 +0100 Subject: [PATCH] Fix the apidoc generation for implicit namespaces --- Makefile.sphinx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.sphinx b/Makefile.sphinx index 03b277ef..01e80e52 100644 --- a/Makefile.sphinx +++ b/Makefile.sphinx @@ -2,7 +2,7 @@ # automatically build sphinx documentation. APIDOC_DIR = apidoc -APIDOC_OPTS = --ext-viewcode --separate +APIDOC_OPTS = --ext-viewcode --separate --implicit-namespaces SPHINXBUILD = sphinx-build SPHINXAPIDOC = sphinx-apidoc SPHINX_OPTS = -t standalone_package_doc @@ -34,7 +34,7 @@ sphinx/%: $(apidoc_dep) apidoc: $(apidoc_dep) apidoc-stamp: - $(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) .. $(APIDOC_SWH_EXCLUDES) + $(SPHINXAPIDOC) $(APIDOC_OPTS) -o $(APIDOC_DIR) ../swh $(APIDOC_SWH_EXCLUDES) # to silent Sphinx warnings about apidoc documents not included in any toctree find $(shell pwd)/apidoc -name "*.rst" | xargs sed -i '1i:orphan:\n' touch $@ -- GitLab