-
Notifications
You must be signed in to change notification settings - Fork 201
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
[WIP] Docs: fix reStructuredText
syntax for figures
#5386
Open
EZoni
wants to merge
19
commits into
ECP-WarpX:development
Choose a base branch
from
EZoni:docs_figures
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c20b4e7
to
ac671e7
Compare
reStructuredText
syntax for figuresreStructuredText
syntax for figures
ax3l
pushed a commit
that referenced
this pull request
Oct 11, 2024
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
dpgrote
pushed a commit
to dpgrote/WarpX
that referenced
this pull request
Oct 23, 2024
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 ECP-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.
8699c07
to
be7d829
Compare
fa28366
to
231c378
Compare
reStructuredText
syntax for figuresreStructuredText
syntax for figures
reStructuredText
syntax for figuresreStructuredText
syntax for figures
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 thereStructuredText
figure examples:As a reminder, the
reStructuredText
image 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.