Skip to content

Commit

Permalink
Skip non-HTML builds for HTML-only languages (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner authored Oct 1, 2024
1 parent caee2be commit fb5c33d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,9 @@ def run(self, http: urllib3.PoolManager) -> bool:
start_timestamp = dt.now(tz=timezone.utc).replace(microsecond=0)
logging.info("Running.")
try:
if self.language.html_only and not self.includes_html:
logging.info("Skipping non-HTML build (language is HTML-only).")
return True
self.cpython_repo.switch(self.version.branch_or_tag)
if self.language.tag != "en":
self.clone_translation()
Expand Down

0 comments on commit fb5c33d

Please sign in to comment.