From 6a44a146afcea1fd69c3f638e7096e329bfaa916 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 6 Dec 2022 15:32:57 +0100 Subject: Fix building docs --- lib/spack/docs/conf.py | 9 ++++++++- lib/spack/docs/developer_guide.rst | 2 +- 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. -- cgit v1.2.3-70-g09d2