mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
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:
parent
ed69821d19
commit
6d7803ece0
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue