Skip to content

Commit b6f5f73

Browse files
committed
Fix add directive according to sphinx changed API
1 parent 5a740b1 commit b6f5f73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/sphinxext/only_directives.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ def builder_inited(app):
3737
html_only.traverse = only_base.dont_traverse
3838

3939
def setup(app):
40-
app.add_directive('htmlonly', html_only_directive, True, (0, 0, 0))
41-
app.add_directive('latexonly', latex_only_directive, True, (0, 0, 0))
40+
app.add_directive('htmlonly', html_only_directive, True)
41+
app.add_directive('latexonly', latex_only_directive, True)
4242
app.add_node(html_only)
4343
app.add_node(latex_only)
4444

0 commit comments

Comments
 (0)