Skip to content

Commit

Permalink
Updated sphinx config to work with version 1.8 and up.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelClerx committed Sep 18, 2018
1 parent d364fc6 commit 6548d44
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
# import os
# import sys
# sys.path.insert(0, os.path.abspath('.'))
import sphinx
import guzzle_sphinx_theme

# -- General configuration ------------------------------------------------
Expand All @@ -37,11 +38,17 @@
]

# Autodoc defaults
autodoc_default_flags = [
'members',
'inherited-members',
# 'show-inheritance',
]
if int(sphinx.__version__.split('.')[1]) < 8:
autodoc_default_flags = [
'members',
'inherited-members',
# 'show-inheritance',
]
else:
autodoc_default_options = {
'members': None,
'inherited-members': None,
}

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -176,5 +183,3 @@
'Miscellaneous'),
]



0 comments on commit 6548d44

Please sign in to comment.