Skip to content

Commit dfc4fec

Browse files
Fix combined builds missing HTML output (#354)
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
1 parent b52cd65 commit dfc4fec

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

build_docs.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,8 +756,14 @@ def build(self) -> None:
756756
else:
757757
maketarget = "autobuild-stable"
758758
if self.html_only:
759-
maketarget += "-html"
760-
logging.info("Running make %s", maketarget)
759+
maketargets = [f"{maketarget}-html"]
760+
else:
761+
maketargets = [maketarget]
762+
if self.includes_html:
763+
# The plain autobuild targets only build non-HTML
764+
# (gh-139436), but a combined build needs HTML.
765+
maketargets.append(f"{maketarget}-html")
766+
logging.info("Running make %s", " ".join(maketargets))
761767
python = self.venv / "bin" / "python"
762768
sphinxbuild = self.venv / "bin" / "sphinx-build"
763769
blurb = self.venv / "bin" / "blurb"
@@ -792,7 +798,7 @@ def build(self) -> None:
792798
f"VENVDIR={self.venv}",
793799
f"SPHINXOPTS={' '.join(sphinxopts)}",
794800
"SPHINXERRORHANDLING=",
795-
maketarget,
801+
*maketargets,
796802
))
797803
self.log_directory.mkdir(parents=True, exist_ok=True)
798804
chgrp(self.log_directory, group=self.group, recursive=True)

0 commit comments

Comments
 (0)