diff --git a/docs/src/conf.py b/docs/src/conf.py index 8335aa1..4b2b3c6 100644 --- a/docs/src/conf.py +++ b/docs/src/conf.py @@ -24,7 +24,7 @@ # -- API documentation ------------------------------------------------------- # `sphinx-apidoc` is supported by default. Additional API documentation providers. -# One can select the preferred method with the variable below. Accepted options +# One can select the preferred method with the variable below. Accepted options # are: `sphinx-apidoc`, or 'None'. The variable is case-insensitive api_documentation = "sphinx-apidoc" @@ -61,6 +61,7 @@ def run_sphinx_apidoc(): except Exception as e: print("Running `sphinx-apidoc` failed!\n{}".format(e)) + if api_documentation.lower() == "sphinx-apidoc": run_sphinx_apidoc() elif api_documentation.lower() == "none":