Skip to content

Commit fb5c33d

Browse files
authored
Skip non-HTML builds for HTML-only languages (#208)
1 parent caee2be commit fb5c33d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build_docs.py

+3
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ def run(self, http: urllib3.PoolManager) -> bool:
640640
start_timestamp = dt.now(tz=timezone.utc).replace(microsecond=0)
641641
logging.info("Running.")
642642
try:
643+
if self.language.html_only and not self.includes_html:
644+
logging.info("Skipping non-HTML build (language is HTML-only).")
645+
return True
643646
self.cpython_repo.switch(self.version.branch_or_tag)
644647
if self.language.tag != "en":
645648
self.clone_translation()

0 commit comments

Comments
 (0)