Skip to content
Snippets Groups Projects
Commit ce3cd5dc authored by Antoine Lambert's avatar Antoine Lambert
Browse files

Makefile.sphinx: Exclude swh/*/conftest.py files from apidoc processing

Such files are not of interest for API documentation and can generate doc
build errors.

Since swh-web tests reorganization, we now have such file so we need to
exclude it from apidoc processing.
parent 5afff2c0
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@ SPHINX_BUILDDIR = _build
SPHINX_SRCDIR = .
# relative to docs/ dir. Hence "." exclude the docs/ dir itself
APIDOC_EXCLUDES = . ../setup.py ../conftest.py
APIDOC_EXCLUDES = . ../setup.py ../conftest.py ../swh/*/conftest.py
APIDOC_EXCLUDES += ../swh/*/tests ../swh/*/tests/* ../swh/*/*/tests/* ../swh/*/*/*/tests/*
APIDOC_EXCLUDES += ../swh/*/migrations ../swh/*/migrations/* ../swh/*/*/migrations/* ../swh/*/*/*/migrations/*
APIDOC_EXCLUDES += ../bin ../dist ../utils ../node_modules
......
......@@ -16,7 +16,8 @@ APIDOC_DIR = apidoc
APIDOC_OPTS = --ext-viewcode --separate --no-toc
APIDOC_EXCLUDES = */tests */tests/* */*/tests/* */*/*/tests/*
APIDOC_EXCLUDES += */migrations */migrations/* */*/migrations/* */*/*/migrations/*
APIDOC_EXCLUDES += */wsgi.py */*/wsgi.py */*/*/wsgi.py */*/*/wsgi.py
APIDOC_EXCLUDES += */wsgi.py */*/wsgi.py */*/*/wsgi.py
APIDOC_EXCLUDES += */conftest.py */*/conftest.py */*/*/conftest.py
APIDOC_EXCLUDES += deposit/settings/* web/settings/* dataset/*
APIDOC_SWH_EXCLUDES = $(patsubst %,$(SWHPKGDIR)/%,$(APIDOC_EXCLUDES))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment