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

Stop using make-historical #2312

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

Eric-Arellano
Copy link
Collaborator

Closes #2269.

That issue made me realize I'm not sure why we have been using make-historical all this time rather than npm run gen-api with --historical. gen-api will correctly handle setting up the new folder. For Qiskit SDK, gen-api will ensure the release note links are updated correctly for the historical notes, like 1.2.mdx linking to /api/qiskit/1.2 rather than the unversioned files.

@Eric-Arellano Eric-Arellano changed the title [wip] Stop using make-historical Stop using make-historical Nov 14, 2024
@Eric-Arellano Eric-Arellano marked this pull request as ready for review November 14, 2024 13:02
Copy link
Collaborator

@arnaucasau arnaucasau left a comment

Choose a reason for hiding this comment

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

Good idea!!

This script was introduced while still using the web crawler and qiskit.org IIRC. Runtime and Provider didn't publish more than one version, and it was necessary at that time. I remember we decided to keep it afterward to have a safe mechanism to convert a version into a historical one in case something happened to the CI artifacts (like if they expire). See #332

Since we have the artifacts stored in Box, I don't see any other advantage than just the speedup obtained when generating a new version, given that we avoid using the gen-api twice. On the other hand, the script has got more complex with all the handling of the release notes and links and I think it would be better to use gen-api as you propose. That way we avoid having to update in two places when changing something in the future.

I tested the differences between running make-historical and gen-api with the historical argument for Qiskit and Runtime, and the output was the same but fixing the metadata issue.

-title: visualization (latest version)
-description: API reference for qiskit_ibm_runtime.visualization in the latest version of qiskit-ibm-runtime
+title: visualization (v0.33)
+description: API reference for qiskit_ibm_runtime.visualization in qiskit-ibm-runtime v0.33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

make-historical has incorrect page metadata
2 participants