Skip to content

Commit

Permalink
Update copyright date, fix depreciation warning in sphinx
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorch committed Sep 24, 2018
1 parent da3dee7 commit 4bf5976
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/conf.py
Expand Up @@ -17,6 +17,12 @@
import os
import shlex

# Fix: ImportError: cannot import name 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
# 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 = '2015-2017, 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 Expand Up @@ -294,7 +300,6 @@
# Disqus integration to ReadTheDocs:
# https://github.com/whardier/bogomip/blob/master/conf.py#L269
from docutils import nodes
from sphinx.util.compat import Directive

class Disqus(Directive):
required_arguments = 2
Expand Down Expand Up @@ -329,4 +334,4 @@ def run(self):
return [ nodes.raw('', embed_html_code, format='html') ]

def setup(app):
app.add_directive("disqus", Disqus)
app.add_directive("disqus", Disqus)

0 comments on commit 4bf5976

Please sign in to comment.