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

[Doc] Fixed parsing of ecal_doc_version number #2020

Merged
merged 1 commit into from
Feb 12, 2025
Merged
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
8 changes: 7 additions & 1 deletion doc/rst/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@
elif not ecal_doc_version:
print("WARNING: Environment variable ECAL_DOC_VERSION not set. Skipping generating PPA instructions.")
else:
generate_release_documentation.generate_ppa_instructions(gh_api_key, semantic_version.Version(ecal_doc_version), ppa_instructions_rst_file)
# Sanitize the version string by removing leading 'v' and '.' characters
ecal_doc_version_sanitized = ecal_doc_version
if ecal_doc_version_sanitized.startswith('v'):
ecal_doc_version_sanitized = ecal_doc_version_sanitized[1:]
if ecal_doc_version_sanitized.startswith('.'):
ecal_doc_version_sanitized = ecal_doc_version_sanitized[1:]
generate_release_documentation.generate_ppa_instructions(gh_api_key, semantic_version.Version(ecal_doc_version_sanitized, partial=True), ppa_instructions_rst_file)


# -- General configuration ---------------------------------------------------
Expand Down
Loading