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

Refactor release notes handling of separate pages #1305

Merged
merged 5 commits into from
May 7, 2024

Conversation

Eric-Arellano
Copy link
Collaborator

This is a prefactor for the upcoming addition of the Cloud Transpiler. It does not yet have release notes, so we need to be able to disable the mechanism.

Before, we were checking if it was Qiskit. But we should be consistent for all packages that have separate release notes.
It was redundant to have both. Now, we have a method hasSeparateReleaseNotes() that dynamically computes the value
This will soon have the additional kwarg `enabled`. The class is nice because it allows us to have default args and to group related config options into a single place.
Before, we required that you specify the version & the URL for the entry. But the full URL is only necessary in generateToc.ts, which already has the prefix for the URL. It's much simpler if instead we only pass the version strings.
@Eric-Arellano
Copy link
Collaborator Author

Each commit is distinct and has some description attached to it. I recommend reviewing by commit

Copy link
Member

@frankharkins frankharkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting it out into separate commits. These all seem like good improvements, thanks!

@Eric-Arellano Eric-Arellano added this pull request to the merge queue May 7, 2024
Merged via the queue into main with commit 96bcd5d May 7, 2024
5 checks passed
@Eric-Arellano Eric-Arellano deleted the EA/refactor-release-notes branch May 7, 2024 10:54
frankharkins pushed a commit to frankharkins/documentation that referenced this pull request Jul 22, 2024
This is a prefactor for the upcoming addition of the Cloud Transpiler.
It does not yet have release notes, so we need to be able to disable the
mechanism.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants