Skip to content

Commit

Permalink
Fix deprecated module for sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Sep 24, 2018
1 parent 6693d00 commit 33ccdc4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/conf.py
Expand Up @@ -17,6 +17,12 @@
import os
import shlex

# Fix: ImportError: cannot import name Directive
# https://github.com/spinus/sphinxcontrib-images/issues/41#issuecomment-317445812
from docutils.parsers.rst.directives.admonitions import BaseAdmonition
from sphinx.util import compat
compat.make_admonition = BaseAdmonition

# 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
# documentation root, use os.path.abspath to make it absolute, like shown here.
Expand Down Expand Up @@ -55,7 +61,7 @@

# General information about the project.
project = 'PyCep'
copyright = '2018, Daniel Lorch'
copyright = '2015-2018, Daniel Lorch'
author = 'Daniel Lorch'

# The version info for the project you're documenting, acts as replacement for
Expand Down

0 comments on commit 33ccdc4

Please sign in to comment.