docs(nav): add "← packetThrower" back-link pill to the docs header#49
Merged
Conversation
Etch341's docs site puts a back-pill to the parent landing page on
the right side of the header — useful affordance for visitors who
landed deep on the Baudrun docs from a search result and want to
discover the rest of packetThrower. Adds the same pill to our
SocialIcons override, sitting to the left of the existing "Docs"
quick-access pill.
Implementation notes:
* Renamed the shared style class `.bd-docs-link` → `.bd-nav-pill`
since both pills now share the same look (and any future pill
here would too). Single class for the visual style means the
Docs / packetThrower / hypothetical-third pill stay visually
consistent without manually keeping three rules in sync.
* Back-link uses an absolute `https://packetthrower.github.io/`
URL on purpose. Astro's configured `base` is `/Baudrun/`, so a
relative `/` would resolve to this site's own root rather than
the parent. Comment in the file explains.
* Arrow is wrapped in `<span aria-hidden="true">` so screen
readers don't try to pronounce a left-arrow character — they
read the pill as "packetThrower" alone.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.
Summary
Adds a back-link pill to the docs header so visitors can discover the rest of packetThrower from any deep page. Pattern lifted from Etch341's docs site.
What it looks like
Header right side reads (left → right):
[← packetThrower][Docs][GitHub icon][Theme toggle]The first pill links absolute to
https://packetthrower.github.io/(the parent landing page), the second to/Baudrun/install/(Docs entry point, unchanged).Implementation
SocialIcons.astrooverride (already a wrapper of Starlight's default)..bd-docs-link→.bd-nav-pillsince both pills share the look. Single class means future pills here stay visually consistent without three rules to keep in sync.baseis/Baudrun/— a relative/would resolve to this site's own root rather than the parent.<span aria-hidden="true">so screen readers read the pill as "packetThrower" alone.🤖 Generated with Claude Code