Skip to content

Commit

Permalink
Fix building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
alalazo committed Dec 21, 2022
1 parent fbfb5d9 commit d470046
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 @@ -75,7 +75,14 @@
"--no-toc", # Don't create a table of contents file
"--output-dir=.", # Directory to place all output
]
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 d470046

Please sign in to comment.