Skip to content

docs: add ClientRedirects.astro - #5324

Merged
JoshuaKGoldberg merged 2 commits into
mochajs:mainfrom
JoshuaKGoldberg:docs-next-client-redirects
Apr 10, 2025
Merged

docs: add ClientRedirects.astro#5324
JoshuaKGoldberg merged 2 commits into
mochajs:mainfrom
JoshuaKGoldberg:docs-next-client-redirects

Conversation

@JoshuaKGoldberg

Copy link
Copy Markdown
Member

PR Checklist

Overview

Adds a ClientRedirects.astro that is loaded only on the homepage and once the client has loaded per Astro's client:load. It includes a redirect for all the existing IDs noted in #5306 (comment) that have an equivalent location in the docs-next site.

I also included a few small touchups that can be split out if requested:

  • Added /interfaces/about and /reporters/about landing pages, since there's otherwise no direct equivalent for #interfaces or #reporters
  • Moved ## Diffs from /features/timeouts to a new /features/diffs, to make a full page equivalent for #diffs
  • Fixed a repeated word in /getting-started

@mark-wiemer
mark-wiemer self-requested a review April 9, 2025 15:38
Comment thread docs-next/src/content/docs/interfaces/about.mdx Outdated
Comment thread docs-next/src/components/ClientRedirects.astro
Co-authored-by: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com>
@JoshuaKGoldberg
JoshuaKGoldberg merged commit b88d441 into mochajs:main Apr 10, 2025
lennonnikolas pushed a commit to lennonnikolas/mocha that referenced this pull request Jan 24, 2026
* docs: add ClientRedirects.astro

* Update docs-next/src/content/docs/interfaces/about.mdx

Co-authored-by: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com>

---------

Co-authored-by: Mark Wiemer <7833360+mark-wiemer@users.noreply.github.com>
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.

📝 Docs: Add JavaScript-based redirects for old # headings to the new website

2 participants