fix: broken screenshot links in docs #2472
Merged
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.
📝 Summary
Fixes broken image links in #2458.
I also masked the API key in the screenshots -- previously it was a fake API key, but resembled an actual key. Abbreviating the key with
...
eliminates that confusion.🔍 Description of Changes
src
attributes in the<img>
tags to point to the/_static
directory (using an absolute path)make ARGS="-a" docs
as shown in the contributor guide (thanks for that helpful guide!). See the after screenshot below.uuid.uuid4()
. Masking out the (fake) API key eliminates confusion.figcaption
s to the screenshots, following the pattern used in other areas of the docsAfter

Before

Notes on dark-theme screenshots
If you'd prefer to use the dark-theme images in the screenshots instead, you can add
-dark.png
to the end of thesrc
image paths; the dark-theme screenshot is also updated with the API mask. I chose the light-themed versions because the screenshots in other areas of the docs use a light theme.Also, feel free to delete the dark-themed images if there isn't a use for them, since that would keep the
_static
directory smaller.📋 Checklist
📜 Reviewers
@mscolnick