Skip to content

Commit 2d9e9f9

Browse files
committed
Fix Sphinx 1.7 compatibility
Resolve the below deprecation warning: RemovedInSphinx17Warning: sphinx.util.compat.nd will be removed in Sphinx 1.7, please use the standard library version instead. Fixes #10. Signed-off-by: Stephen Finucane <stephen@that.guru>
1 parent 3461092 commit 2d9e9f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sphinx_click/ext.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
from docutils import nodes
2+
from docutils.parsers import rst
23
from docutils.parsers.rst import directives
34
from docutils import statemachine
45

56
import click
6-
from sphinx.util.compat import Directive
77

88

99
def _indent(text, level=1):
@@ -224,7 +224,7 @@ def _format_command(ctx, show_nested):
224224
yield ''
225225

226226

227-
class ClickDirective(Directive):
227+
class ClickDirective(rst.Directive):
228228

229229
has_content = False
230230
required_arguments = 1

0 commit comments

Comments
 (0)