Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sphinx_versioned/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main(
help="Adds compatibility for older sphinx versions by monkey patching certain functions.",
),
prebuild: bool = typer.Option(
True, help="Pre-builds the documentations; Use `--no-prebuild` to half the runtime."
False, help="Pre-builds the documentations; Use `--no-prebuild` to half the runtime."
),
branches: str = typer.Option(
None,
Expand Down
4 changes: 3 additions & 1 deletion sphinx_versioned/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ def build(self) -> None:
self._built_version.append(tag)
except SphinxError:
log.error(f"build failed for {tag}")
exit(-1)
log.warning(f"Re-running build without branch/tag: {tag.name}")
self._versions_to_build.remove(tag)
self.build()
finally:
# restore to active branch
self.versions.checkout(self._active_branch)
Expand Down