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

sphinx/conf.py: Ensure standalone swh-web-client doc build on Jenkins

Phabricator short code is used as folder name instead of project name
in that case.
parent 3c7805c4
No related branches found
No related tags found
No related merge requests found
......@@ -223,7 +223,7 @@ def register_routingtable_as_label(app, document):
# sphinx event handler to set adequate django settings prior reading
# apidoc generated rst files when building doc to avoid autodoc errors
def set_django_settings(app, env, docname):
if "swh-web-client" in app.srcdir:
if any([pattern in app.srcdir for pattern in ("swh-web-client", "DWCLI")]):
# swh-web-client is detected as swh-web by the code below but
# django is not installed when building standalone swh-web-client doc
return
......
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