-
Notifications
You must be signed in to change notification settings - Fork 26
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
Improve integration of images with surounding text using the figure element #196
Improve integration of images with surounding text using the figure element #196
Conversation
Touching base to check if this is desirable. It's a quick run through the docs for me, so I think it's worth rolling out captions everywhere (and give a consistent pattern to follow for new docs). I'm also taking note of small UX inconsistencies as I compare the docs and the screenshots, so the read-through doesn't feel like wasted time. That being said YMMV, hence the question before I go further 😉 |
@gonzalo-bulnes Thank you for working on this! I'm broadly in favor of this change, but I think if we use captions throughout the docs like this, we may want to style them a little bit differently, e.g., a bit smaller and in dark grey font, so they don't interrupt the flow of the main body text. I'm curious what other maintainers and contributors think about this change. An alternative approach would be to be much more selective, and only apply it to graphics where the detail really is important (like the overview diagram, and the detailed firewall config screenshots in https://docs.securedrop.org/en/stable/network_firewall.html). |
I tend not to question the styles much when relying on a theme like Read The Docs'. I guess I tend to assume that readability being their core business, the themes would have reasonable defaults, but yours is a fair point. Getting people's thoughts seems like a good idea! 🙂 |
👋 As I was taking a look at the Netgate docs a few days ago, I noticed the way they use captions when including figures in their how-tos. Specifically, they use them to repeat the action you're supposed to perform when your see what the image show. Example in the Netgate docs: (source) |
Not directly related:
When it comes to including "Click on the image to see it full-size", I agree it's probably not useful to mention it explicitly in all images. Besides, the feature doesn't depend on the caption itself. |
@gonzalo-bulnes I like the Netgate example. The screenshots have arrow annotations, and the captions restate the specific step that users are asked to perform. One thing I noticed is that your PR implicitly changes the After your change, that I would suggest the following design goals:
Do those goals make sense to you? If so, do you want to take another stab at a selective edit e.g. to the Admin Guide in line with these design goals? |
Yes @eloquence , all three goals make complete sense to me! I'm happy to use the Admin Guide as a sample 👍 I hadn't noticed the change in the |
I kept the "Click to enlarge" hints when the screenshot displays large amount of text. It's admittedly an arbitrary threshold, and I'm not 100% sold on the idea. On one side I wouldn't mind removing the hints entirely, on the other I think it's good to give people a change to learn that images can be zoomed - and that seems more relevant when there screenshot displays a large amount of information. |
Apologies for not responding sooner, @gonzalo-bulnes, thanks for the follow-up. I would not add the "Click to see full-size" hint to the larger SecureDrop screenshots; as you say, the size threshold is somewhat arbitrary, which could be confusing for documentation writers and readers alike. I think the resize hint would be helpful in these cases:
The firewall screenshots in https://docs.securedrop.org/en/stable/network_firewall.html may also benefit from the hint. But I would err on the size of conservatism for now; perhaps we can come up with a more subtle affordance to make the resizability of images discoverable, separately from this PR. |
Thanks @eloquence I'll apply that to see how it looks/reads 🙂 |
Hi @gonzalo-bulnes, just checking in - do you still have time to poke at this? |
Hi @eloquence! The last couple of weeks were somewhat busier than I expected, and I postponed working on this two days ago. But yes, I intend to get to it over the weekend 🙂 |
Expand accronym that isn't used elsewhere in the document.
088e56b
to
dce4a19
Compare
(rebased, squashed commits and removed the hints) |
Slow coming back into context. Arguably, this PR is now more about using the With the focus on using the |
Sounds great, please retitle as you see fit :) |
@gonzalo-bulnes Just checking in on the status of this PR, would be great to get a first iteration over the finish line in the next couple of weeks :) |
Hey, apologies for the slow reply, I plan on resuming this tomorrow morning : ) |
@gonzalo-bulnes If you're coming up from air sometime, this may be a nice slow-burn PR to return to :P |
Hi @gonzalo-bulnes, this PR has been stale for a while, I'd suggest closing it out for now unless you want to return to it. |
I'm properly tracking this one now in my personal project board. 😬 |
Hi @gonzalo-bulnes, I suggest we close this out or adopt it, but let me know if you have interest in picking it up again :) |
I won't be resuming this in the near future, I'll close it an you can re-open whenever you see fit 🙂 |
Status
Work in progress
Description of Changes
Adds captions to all images in the documentation by using the
figure
directive. Each caption describes the image and hints that clicking on the image will display it in full size. Since the possibility of opening the image in full size is now explicit, this PR aslo slightly reduces the size of the images in the docs in order to reduce the interruption that illustrations cause to the flow of the text.This is a follow up on the introduction of image captions in #141.
Pros
Accepted trade-offs
image
directive,figure
cannot be used insubstitution definitions
, which means that the image URLs cannot be grouped at the end of the document anymore. Because most images are used only once per document, I think that's an acceptable trade-off for the accessibility improvement.Testing
I'll update when the PR is ready for review.
Release
No special considerations before release come to mind yet, I'll confirm when the PR is ready for review.
Example
Note: the pixellation on the image is due to the amount of zoom out I applied to keep the screenshot size small. The figures don't appear pixellated in the docs (example).
Checklist (Optional)
make docs-lint
) passed locallymake docs-linkcheck
) passedmake docs
) docs at http://localhost:8000