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

sphinx/conf.py: Ensure standalone swh-web-client doc build with tox

Related to T3258
parent 4f8a8acf
No related branches found
No related tags found
No related merge requests found
......@@ -223,6 +223,10 @@ 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:
# 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
package_settings = {
"auth": "swh.auth.tests.django.app.apptest.settings",
"deposit": "swh.deposit.settings.development",
......
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