summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-12-06 15:32:57 +0100
committerTodd Gamblin <tgamblin@llnl.gov>2023-01-04 09:43:04 -0800
commit6a44a146afcea1fd69c3f638e7096e329bfaa916 (patch)
tree409fa96a61ba5635d0232675d2ac03979e62a0b6
parent033cb86fd69abe34e04f0ed0e08719d5a8b4f34d (diff)
downloadspack-6a44a146afcea1fd69c3f638e7096e329bfaa916.tar.gz
spack-6a44a146afcea1fd69c3f638e7096e329bfaa916.tar.bz2
spack-6a44a146afcea1fd69c3f638e7096e329bfaa916.tar.xz
spack-6a44a146afcea1fd69c3f638e7096e329bfaa916.zip
Fix building docs
-rw-r--r--lib/spack/docs/conf.py9
-rw-r--r--lib/spack/docs/developer_guide.rst2
2 files changed, 9 insertions, 2 deletions
diff --git a/lib/spack/docs/conf.py b/lib/spack/docs/conf.py
index 842c84c4e5..af53645ff1 100644
--- a/lib/spack/docs/conf.py
+++ b/lib/spack/docs/conf.py
@@ -76,7 +76,14 @@ apidoc_args = [
"--output-dir=.", # Directory to place all output
"--module-first", # emit module docs before submodule docs
]
-sphinx_apidoc(apidoc_args + ["_spack_root/lib/spack/spack"])
+sphinx_apidoc(
+ apidoc_args
+ + [
+ "_spack_root/lib/spack/spack",
+ "_spack_root/lib/spack/spack/test/*.py",
+ "_spack_root/lib/spack/spack/test/cmd/*.py",
+ ]
+)
sphinx_apidoc(apidoc_args + ["_spack_root/lib/spack/llnl"])
# Enable todo items
diff --git a/lib/spack/docs/developer_guide.rst b/lib/spack/docs/developer_guide.rst
index 93bbce5198..f777044684 100644
--- a/lib/spack/docs/developer_guide.rst
+++ b/lib/spack/docs/developer_guide.rst
@@ -232,7 +232,7 @@ Spack Subcommands
Unit tests
^^^^^^^^^^
-:mod:`spack.test`
+``spack.test``
Implements Spack's test suite. Add a module and put its name in
the test suite in ``__init__.py`` to add more unit tests.