Fix docs build on Sphinx 1.7+

Sphinx 1.7 got rid of sphinx.utils.compat. This commit allows the builds
to work both on both older and newer Sphinx.
This commit is contained in:
Erik Johnson 2018-05-03 13:31:34 -05:00
parent ed69821d19
commit 6d7803ece0
No known key found for this signature in database
GPG Key ID: 5E5583C437808F3F

View File

@ -38,7 +38,10 @@ from __future__ import division
import re
from docutils import nodes
from docutils.parsers.rst import directives
from sphinx.util.compat import Directive
try:
from sphinx.util.compat import Directive
except ImportError:
from docutils.parsers.rst import Directive
CONTROL_HEIGHT = 30