Repository navigation
Docs: Add a diagram of pathlib path components - #159727
Merged
Merged
Conversation
Documentation build overview
5 files changed ·
|
Member
Member
Author
|
@hugovk I don't have Books.app, but I think it should be improved? Can you check it again? |
StanFromIreland
approved these changes
Oct 19, 2026
Member
Author
|
Thanks for the reviews and feedback Hugo and Stan! |
|
Thanks @pganssle for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Thanks @pganssle for the PR 🌮🎉.. I'm working now to backport this PR to: 3.15. |
|
GH-159873 is a backport of this pull request to the 3.15 branch. |
|
GH-159874 is a backport of this pull request to the 3.14 branch. |
hugovk
pushed a commit
that referenced
this pull request
Oct 20, 2026
hugovk
pushed a commit
that referenced
this pull request
Oct 20, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.






Add a diagram showing how
parent,name,stem, andsuffixdivide up a path. The example uses/srv/holy/grail.tar.gzso that it also shows thatstemremoves only the final suffix.The SVG places
stemandsuffixabove the path andparentandnamebelow it. Stem and suffix use blue and orange, with a half-character gap between their spans. The image uses the documentation theme's existinginvert-in-dark-modeclass, so it follows both the system preference and the manual theme selector.The diagram has descriptive alt text giving all four values. HTML and EPUB both use the SVG. An explicit background preserves contrast in EPUB readers that override page colors without applying the documentation theme to images. Such readers retain a white diagram panel rather than placing dark text directly on a black page. The text remains SVG text, and the horizontal margins are balanced.
Validation:
Books.app itself was not available for retesting.
Light mode:
Dark mode:
The diagram and documentation change were developed with AI assistance.