From 37a4a44da54bce59027e592444837af8acf9ca33 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 23 Feb 2018 18:32:20 +0100 Subject: doc: Remove support for docutils-0.4 The compat class from sphinx for "Directive" was deprecated and removed in the current sphinx version. So we should use the class from docutils directly. You will need at least docutils-0.5 (from 2008) to build the documentation. --- doc/exts/xmlschema.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/exts/xmlschema.py b/doc/exts/xmlschema.py index 89104c2a6..63ab6f489 100644 --- a/doc/exts/xmlschema.py +++ b/doc/exts/xmlschema.py @@ -70,10 +70,9 @@ import lxml.etree from docutils import nodes from sphinx import addnodes, roles from docutils.statemachine import ViewList -from docutils.parsers.rst import directives +from docutils.parsers.rst import Directive, directives from sphinx.util.nodes import make_refnode, split_explicit_title, \ nested_parse_with_titles -from sphinx.util.compat import Directive from sphinx.domains import ObjType, Domain try: -- cgit v1.2.3-1-g7c22