Move sphinx-apidoc into conf.py, too.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
import shutil
|
||||
import subprocess
|
||||
from glob import glob
|
||||
from sphinx.apidoc import main as sphinx_apidoc
|
||||
|
||||
# -- Spack customizations -----------------------------------------------------
|
||||
|
||||
@@ -93,6 +94,10 @@
|
||||
for cmd in sorted(command_names):
|
||||
index.write(' * :ref:`%s`\n' % cmd)
|
||||
|
||||
|
||||
# Run sphinx-apidoc
|
||||
sphinx_apidoc(['-T', '-o', '.', '../spack'])
|
||||
|
||||
#
|
||||
# Exclude everything in spack.__all__ from indexing. All of these
|
||||
# symbols are imported from elsewhere in spack; their inclusion in
|
||||
|
Reference in New Issue
Block a user