-
Notifications
You must be signed in to change notification settings - Fork 230
Docs: Fix reStructuredText syntax for figures #5386
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
Docs: Fix reStructuredText syntax for figures #5386
Conversation
c20b4e7 to
ac671e7
Compare
reStructuredText syntax for figuresreStructuredText syntax for figures
Could we do this to make sure that we run the GitHub Actions and Azure jobs (build, test) only if _at least one file outside the_ `Docs` _directory_ is modified, i.e., skip those jobs if only files in the `Docs` directory are modified? I think it would be safe to do so (and a bit of a waste of resources to not do so...), but I leave it open for discussion. If merged, we could test this rebasing #5386 and seeing if the correct CI jobs are skipped. Note that this PR leaves the other CI jobs untouched, e.g., `source`, `docs`, `CodeQL`, etc.
|
Need to double check if the skipping of CI build/test jobs (#5387) worked out well and if can do more on it. |
reStructuredText syntax for figuresreStructuredText syntax for figures
reStructuredText syntax for figuresreStructuredText syntax for figures
165de5a to
46e6b0d
Compare
Could we do this to make sure that we run the GitHub Actions and Azure jobs (build, test) only if _at least one file outside the_ `Docs` _directory_ is modified, i.e., skip those jobs if only files in the `Docs` directory are modified? I think it would be safe to do so (and a bit of a waste of resources to not do so...), but I leave it open for discussion. If merged, we could test this rebasing BLAST-WarpX#5386 and seeing if the correct CI jobs are skipped. Note that this PR leaves the other CI jobs untouched, e.g., `source`, `docs`, `CodeQL`, etc.
reStructuredText syntax for figuresreStructuredText syntax for figures
reStructuredText syntax for figures|
Ready for review. |
|
@EZoni sorry about this, but after the documentation changes we merged earlier today, this PR has a couple conflicts. |
|
I think I resolved the conflicts. This should be ready to review again. |
roelof-groenewald
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
5c45760
into
BLAST-WarpX:development
While reviewing some of our documentation PRs, I noticed that we use the `:alt:` (alternate text) syntax in a way that might be neither optimal nor consistent with the `reStructuredText` [figure examples](https://docutils.sourceforge.io/docs/ref/rst/directives.html#figure): ```rst .. figure:: picture.png :scale: 50 % :alt: map to buried treasure This is the caption of the figure (a simple paragraph). ``` As a reminder, the `reStructuredText` [image docs](https://docutils.sourceforge.io/docs/ref/rst/directives.html#image) describes alternate text as > Alternate text: a short description of the image, displayed by applications that cannot display images, or spoken by applications for visually impaired users _Before_ this PR, this is the output when an image is displayed:  _Before_ this PR, this is the output when an image is _not_ displayed (e.g., due to a typo in the docs):  _After_ this PR, I would propose to have this output when an image is _not_ displayed (e.g., due to a typo in the docs):  I think this is a better output for both users that read the docs (avoid reading the caption twice) and visually impaired users (avoid hearing the caption twice - the real caption is spoken too). Note that in some cases we do not yet provide a caption. I believe we should add a caption to all figures, but I left this out of this PR.
While reviewing some of our documentation PRs, I noticed that we use the
:alt:(alternate text) syntax in a way that might be neither optimal nor consistent with thereStructuredTextfigure examples:As a reminder, the
reStructuredTextimage docs describes alternate text asBefore this PR, this is the output when an image is displayed:

Before this PR, this is the output when an image is not displayed (e.g., due to a typo in the docs):

After this PR, I would propose to have this output when an image is not displayed (e.g., due to a typo in the docs):

I think this is a better output for both users that read the docs (avoid reading the caption twice) and visually impaired users (avoid hearing the caption twice - the real caption is spoken too).
Note that in some cases we do not yet provide a caption. I believe we should add a caption to all figures, but I left this out of this PR.