summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/conf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index d5ab2cd78..4923db977 100644
--- a/doc/source/conf.py
+++ b/doc/source/conf.py
@@ -216,8 +216,9 @@ phantom_import_file = 'dump.xml'
# Autosummary
# -----------------------------------------------------------------------------
-import glob
-autosummary_generate = glob.glob("reference/*.rst")
+if sphinx.__version__ >= "0.7":
+ import glob
+ autosummary_generate = glob.glob("reference/*.rst")
# -----------------------------------------------------------------------------
# Coverage checker