This pull request adds an image checker to ensure all images have an alt text defined, which is crucial for accessibility, and that we don't have any <img> HTML tag. The output of the check shows the file name that contains invalid images and the images' names. Ex:
Error in file 'docs/guides/custom-transpiler-pass.ipynb':
- The image '/images/guides/custom-transpiler-pass/DAG.png' does not have alt text.
Invalid images found 💔 See https://github.com/Qiskit/documentation#images for instructions.
The PR builds on the work done by @shraddha-aangiras on https://github.com/Qiskit/documentation/pull/1800. I have made some changes to simplify the code and incorporated @eric-arellano's feedback. Thank you both for the work you've done!
This pull request adds an image checker to ensure all images have an alt text defined, which is crucial for accessibility, and that we don't have any
<img>
HTML tag. The output of the check shows the file name that contains invalid images and the images' names. Ex:The PR builds on the work done by @shraddha-aangiras on https://github.com/Qiskit/documentation/pull/1800. I have made some changes to simplify the code and incorporated @eric-arellano's feedback. Thank you both for the work you've done!
Closes https://github.com/Qiskit/documentation/issues/1651