[MRG] Add alt text to scikit-learn documentation#21354
[MRG] Add alt text to scikit-learn documentation#21354isabela-pf wants to merge 10 commits intoscikit-learn:mainfrom
Conversation
Co-authored-by: Reshama Shaikh <2507232+reshamas@users.noreply.github.com>
Co-authored-by: Reshama Shaikh <2507232+reshamas@users.noreply.github.com>
Co-authored-by: Madelene Campos <Madelene@users.noreply.github.com> Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com> Co-authored-by: InessaPawson <albuscode@gmail.com> Co-authored-by: sunsyray <33903999+sunsyray@users.noreply.github.com> Co-authored-by: Agustina <pesce.agustina@gmail.com> Co-authored-by: MarsBarLee <46167686+MarsBarLee@users.noreply.github.com> Co-authored-by: Aerik Pawson <45904740+aerikpawson@users.noreply.github.com>
|
Thanks for the PR. Apparently there is a problem with the rendering of the figure directives with multi-line alt texts, see the "Details" link in the Continuous Integration status report: Clicking this link will lead you to a page with links to HTML rendered pages of the documentation for the edited source and a summary of the sphinx problems: I suspect that the indentation level of the subsequent lines is incorrect. |
|
To fix those, I would advise you to try to build the documentation locally instead of relying on the slow CI of the pull request. Here are instructions to render the documentation locally: https://scikit-learn.org/stable/developers/contributing.html#documentation Since you want some of the figures of the documentation to be generated to check the alt text of the generated The |
doc/modules/biclustering.rst
Outdated
| :align: center | ||
| :scale: 50 | ||
| :alt: The graph is a square heat map, 5x5, with axes from 0 to 250. The darkest 5 | ||
| squares of heat map run diagonally from top left to bottom right. |
There was a problem hiding this comment.
The plot is a 250x250 heatmap with an almost block-diagonal structure with 5 darker shaded rectangular blocks of varying shapes on the diagonal and a lighter shaded values outside. Within each blocks the values are almost uniform but not exactly with small random fluctuations.
There was a problem hiding this comment.
Since it hasn't been said on this PR yet, I'm not someone that uses scikit-learn or even knows most of the figures we wrote alt text for at this sprint, so I'm happy to defer to your expertise on how much information is helpful to properly describe the figure in context.
As someone who does know alt text, though, I know two of the things I check alt text for is that is 1. that it describes image in a way that makes sense in the context it's used in 2. that it is a short as possible. I don't think this edit adds much to the meaning of the figure in the documentation since it seems to add details rather than the main features of the figure. Of course, if I'm misunderstanding please let me know and I'll commit this suggestion.
A good explanation of what I'm talking about can be found on WebAIM's discussion of alt text written for proper context.
Co-authored-by: Olivier Grisel <olivier.grisel@ensta.org>

Reference Issues/PRs
Addresses #21214. (I'm not using
fixesbecause this does not cover the entire issue and I don't think it should be closed.)What does this implement/fix? Explain your changes.
This PR adds alt text to some of scikit-learn's documentation. It includes alt text for
Any other comments?
This alt text was contributed during an alt text writing event by some wonderful volunteers, so this PR does not intend to cover adding alt text to all of scikit-learn's documentation.
As far as I'm aware, alt text is a new kind of contribution to this project. I'm happy to help discuss what this might include in terms of maintenance and/or review in the future if that is helpful.
Thanks in advance for reviewing this PR!