Skip to content

docs(nav): add "← packetThrower" back-link pill to the docs header#49

Merged
packetThrower merged 1 commit into
mainfrom
docs/back-to-packetthrower
May 29, 2026
Merged

docs(nav): add "← packetThrower" back-link pill to the docs header#49
packetThrower merged 1 commit into
mainfrom
docs/back-to-packetthrower

Conversation

@packetThrower
Copy link
Copy Markdown
Owner

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

  • One SocialIcons.astro override (already a wrapper of Starlight's default).
  • Renamed the shared style class .bd-docs-link.bd-nav-pill since both pills share the look. Single class means future pills here stay visually consistent without three rules to keep in sync.
  • Back-link uses an absolute URL because Astro's configured base is /Baudrun/ — a relative / would resolve to this site's own root rather than the parent.
  • Arrow wrapped in <span aria-hidden="true"> so screen readers read the pill as "packetThrower" alone.

🤖 Generated with Claude Code

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>
@packetThrower packetThrower merged commit a58eb53 into main May 29, 2026
2 checks passed
@packetThrower packetThrower deleted the docs/back-to-packetthrower branch May 29, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant