Skip to content

Commit

Permalink
Fix building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo authored and tgamblin committed Jan 4, 2023
1 parent 033cb86 commit 6a44a14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion lib/spack/docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,14 @@
"--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
Expand Down
2 changes: 1 addition & 1 deletion lib/spack/docs/developer_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 6a44a14

Please sign in to comment.