Skip to content

Commit

Permalink
Documentation/sphinx: Fix Directive import error
Browse files Browse the repository at this point in the history
Sphinx 1.7 removed sphinx.util.compat.Directive so people
who have upgraded cannot build the documentation.  Switch to
docutils.parsers.rst.Directive which has been available since
docutils 0.5 released in 2009.

Bugzilla: https://bugzilla.opensuse.org/show_bug.cgi?id=1083694
Co-developed-by: Takashi Iwai <[email protected]>
Acked-by: Jani Nikula <[email protected]>
Cc: [email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
Signed-off-by: Jonathan Corbet <[email protected]>
  • Loading branch information
Matthew Wilcox authored and Jonathan Corbet committed Mar 9, 2018
1 parent e675482 commit ff690ee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Documentation/sphinx/kerneldoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@

from docutils import nodes, statemachine
from docutils.statemachine import ViewList
from docutils.parsers.rst import directives
from sphinx.util.compat import Directive
from docutils.parsers.rst import directives, Directive
from sphinx.ext.autodoc import AutodocReporter

__version__ = '1.0'
Expand Down

0 comments on commit ff690ee

Please sign in to comment.