Skip to content

Commit be48c22

Browse files
committed
Sphinx 2.0 support: Use app.autodocumenter (AutoDirective removed in Sphinx 2.0)
1 parent 2e860a2 commit be48c22

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sphinx_celery/apicheck.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ def setup(app):
226226
bytes_if_py2('apicheck_domains'), ['py'], False)
227227
app.add_config_value(
228228
bytes_if_py2('apicheck_package'), None, False)
229-
reg = autodoc.AutoDirective._registry
230-
reg[ModuleDocumenter.objtype] = ModuleDocumenter
229+
app.add_autodocumenter(ModuleDocumenter)
231230

232231
return {
233232
'parallel_read_safe': True

0 commit comments

Comments
 (0)