Skip to content

Commit

Permalink
Mock Django in the Sphinx conf #176
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Druez <tdruez@nexb.com>
  • Loading branch information
tdruez committed Sep 17, 2021
1 parent 40721b5 commit 00c8471
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@

# -- Autodoc -----------------------------------------------------------------

# Mock Django related modules to avoid complex configuration in the context of
# autodoc.
autodoc_mock_imports = ["django"]

# The default options for autodoc directives.
# They are applied to all autodoc directives automatically.
# It must be a dictionary which maps option names to the values.
Expand Down

0 comments on commit 00c8471

Please sign in to comment.