qiskit-documentation/docs/api/qiskit-addon-obp
Frank Harkins ca11486479
Convert images to AVIF (#2555)
This PR converts all existing PNG and JPG images to AVIF and updates the
markdown to point to the new files. This is blocked by a PR in
inner-source that will add support for AVIF images.

<details><summary>Conversion script</summary>

```python
from pathlib import Path
import subprocess

# I ran this again with the extension changed to ".jpg"
image_files = Path("public/").rglob("**/*.png")

def to_relative(path: Path) -> str:
    return str(path).removeprefix("public/")

for file in image_files:
    outfile = file.with_suffix(".avif")
    subprocess.run(f"magick {file} {outfile} && rm {file}", shell=True)
    subprocess.run(f"sd -s '{to_relative(file)}' '{to_relative(outfile)}' docs/**/*", shell=True)
```

And then I had to follow it up with this (run from `docs/`) to clean up
links that didn't work for some reason.

```sh
rg '\.png\)' -l | xargs sd -s '.png)' '.avif)'
```

</details>

This PR also enables the AVIF conversion in the API docs sync script,
and the AVIF linter for markdown files.
2025-01-10 16:13:16 +00:00
..
_package.json
_toc.json Tweaks and fixes for new addons (#2270) 2024-11-11 15:28:43 +00:00
index.mdx Tweaks and fixes for new addons (#2270) 2024-11-11 15:28:43 +00:00
qiskit-addon-obp.mdx Regenerate addons with images with alt text (#2527) 2024-12-23 18:53:42 +00:00
release-notes.mdx Tweaks and fixes for new addons (#2270) 2024-11-11 15:28:43 +00:00
utils-metadata-obp-metadata.mdx Tweaks and fixes for new addons (#2270) 2024-11-11 15:28:43 +00:00
utils-metadata-slice-metadata.mdx Tweaks and fixes for new addons (#2270) 2024-11-11 15:28:43 +00:00
utils-metadata.mdx Add versions to API metadata & autogenerate index page metadata (#2241) 2024-11-06 13:07:35 -05:00
utils-operations.mdx Regenerate addons with images with alt text (#2527) 2024-12-23 18:53:42 +00:00
utils-simplify.mdx Regenerate addons with images with alt text (#2527) 2024-12-23 18:53:42 +00:00
utils-truncating.mdx Regenerate addons with images with alt text (#2527) 2024-12-23 18:53:42 +00:00
utils-visualization.mdx Convert images to AVIF (#2555) 2025-01-10 16:13:16 +00:00