Skip to content

Commit d3c9f74

Browse files
slivercn2ygk
authored andcommitted
Adjust sphinx apidoc import as for version 2.0 requires (#606)
Fix to make #605 work
1 parent 27a368e commit d3c9f74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
django.setup()
2828

2929
# Auto-generate API documentation.
30-
from sphinx.apidoc import main
30+
from sphinx.ext.apidoc import main
3131
main(['sphinx-apidoc', '-e', '-T', '-M', '-f', '-o', 'apidoc', '../rest_framework_json_api'])
3232

3333
# -- General configuration ------------------------------------------------

0 commit comments

Comments
 (0)