Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API generation script - Fix loadImages function (Qiskit#665)
The `processHtml.ts` script assumes that we always have an `src` attribute in the `img` tags, and even though this is true for the latest API versions, for Qiskit historical versions, we can find cases like the following example: **Qiskit v0.41 release_notes.html line 23360** ```html <div class="animation"> <img id="_anim_imga6548212aea7457ca5d2f940fabeaea3"> <div class="anim-controls"> <input id="_anim_slidera6548212aea7457ca5d2f940fabeaea3" type="range" class="anim-slider" ``` This PR adds an early return to the `loadImage` function to skip the images without a `src` attribute given that we can't find the image in the `_images` folder of the GitHub artifact.
- Loading branch information