docs: remove legacy import for Sphinx 1.7
This commit is contained in:
parent
e1c5d1378b
commit
8bf1bd4637
1 changed files with 1 additions and 6 deletions
|
@ -24,12 +24,7 @@
|
||||||
import subprocess
|
import subprocess
|
||||||
from glob import glob
|
from glob import glob
|
||||||
|
|
||||||
# Since Sphinx 1.7, sphinx.apidoc has been moved to sphinx.ext.apidoc
|
from sphinx.ext.apidoc import main as sphinx_apidoc
|
||||||
# sphinx.apidoc is deprecated and will be removed in Sphinx 2.0
|
|
||||||
try:
|
|
||||||
from sphinx.ext.apidoc import main as sphinx_apidoc
|
|
||||||
except ImportError:
|
|
||||||
from sphinx.apidoc import main as sphinx_apidoc
|
|
||||||
|
|
||||||
# -- Spack customizations -----------------------------------------------------
|
# -- Spack customizations -----------------------------------------------------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue