From 346e5561b5c67144399569e05c08d166f137842c Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Sat, 3 Mar 2018 10:40:26 +0100 Subject: [PATCH] Fix doc build Sphinx 1.7 removed the Directive from the compat module. Let's use the docutils version. Change-Id: I22972feea961f0eb2996d605ff98bbe1f5df2711 --- doc/source/ext/resources.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/ext/resources.py b/doc/source/ext/resources.py index f5475d49a7..b31ad965f0 100644 --- a/doc/source/ext/resources.py +++ b/doc/source/ext/resources.py @@ -17,8 +17,8 @@ import pydoc from docutils import core from docutils import nodes +from docutils.parsers import rst import six -from sphinx.util import compat from heat.common.i18n import _ from heat.engine import attributes @@ -53,7 +53,7 @@ class contribresourcepages(nodes.General, nodes.Element): pass -class ResourcePages(compat.Directive): +class ResourcePages(rst.Directive): has_content = False required_arguments = 0 optional_arguments = 1