Skip to content

Commit

Permalink
Fix sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Sep 24, 2018
1 parent d5c920f commit 252c06a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/conf.py
Expand Up @@ -18,7 +18,10 @@
import shlex

# Fix: ImportError: cannot import name Directive
from sphinx.util.compat import Directive
try:
from sphinx.util.compat import Directive
except ImportError:
from docutils.parsers.rst import Directive

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down

0 comments on commit 252c06a

Please sign in to comment.