Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No more pre-building by-default, switching to recursive builds #77

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
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
Loading