diff --git a/.gitignore b/.gitignore index b19f8bb0..2cdcdb8c 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,7 @@ coverage.xml # Sphinx documentation docs/_build/ +_build_html/ # PyBuilder target/ diff --git a/pykern/package_data/projex/dot-gitignore.jinja b/pykern/package_data/projex/dot-gitignore.jinja index f066f142..1dafe359 100644 --- a/pykern/package_data/projex/dot-gitignore.jinja +++ b/pykern/package_data/projex/dot-gitignore.jinja @@ -62,6 +62,7 @@ coverage.xml # Sphinx documentation docs/_build/ +_build_html/ # PyBuilder target/ diff --git a/pykern/pkcli/sphinx.py b/pykern/pkcli/sphinx.py index 804205e8..2b632d57 100644 --- a/pykern/pkcli/sphinx.py +++ b/pykern/pkcli/sphinx.py @@ -69,7 +69,7 @@ def _year(rv): v = _parse_metadata() pykern.pkio.write_text(d.join("conf.py"), _conf(v)) pykern.pksubprocess.check_call_with_signals( - ("sphinx-apidoc", "--force", "-o", d.basename, v.name), + ("sphinx-apidoc", "--force", "--module-first", "-o", d.basename, v.name), )