Skip to content

Move redirects.json into config/ - #3094

Merged
ElliotFriend merged 1 commit into
mainfrom
move-redirects-to-config
Nov 11, 2026
Merged

ElliotFriend merged 1 commit into
mainfrom
move-redirects-to-config

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

The first repo-root tidy-up: redirects.json moves to config/redirects.json. docs.json already loads it with $ref, so only the path changes. The file is a pure rename with all 1,625 rules unchanged.

Also updated

  • docs.json: "redirects": { "$ref": "config/redirects.json" }
  • tools/gen-html-redirects.cjs reads and writes the new path, and writes the new $ref.
  • The path in README, CONTRIBUTING, MIGRATING, the Anchor Platform contributor guide, and the Copilot instructions.
  • config/ is deliberately not in .mintignore, so Mintlify still reads it.

Checked

  • mint validate passes. To confirm the $ref really loads from the new path, I pointed it at config/nope.json, and the build failed with "Referenced config file 'config/nope.json' does not exist".
  • In mint dev, the wildcard redirect (/es/docs/build to /docs/build) and a .html redirect (/docs/learn/glossary.html to /docs/learn/glossary) both return 307 to the right destination.
  • mint broken-links --check-redirects reports no bad redirect destinations. Its result is the same as on main.
  • node tools/gen-html-redirects.cjs --dry runs against the new path.

Side note, not in this PR: the dry run shows that pages added since the migration (fee-sponsorship, queryEvents, and others) have no .html redirect yet. Re-running the generator would add them.

Please check on the preview

  • A redirect fires, e.g. /docs/learn/glossary.html.

🤖 Generated with Claude Code

docs.json already loads it with $ref, so only the path changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
stellar-docs 🟢 Ready View Preview Nov 10, 2026, 8:57 PM

@ElliotFriend

Copy link
Copy Markdown
Contributor Author

/triage

@stellar-doxie stellar-doxie Bot added the bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge label Nov 10, 2026
@stellar-doxie

stellar-doxie Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

🤖 Automated message from the Stellar Triage Bot.

Reviewing because @ElliotFriend asked with /triage.

Verified: pure rename, no old path left in the repo, all checks green. On the preview, /docs/learn/glossary.html, /es/docs/build and /meeting-notes/tags redirect (308), and a random path still 404s. Ready to merge.

@ElliotFriend
ElliotFriend merged commit 9ad989e into main Nov 11, 2026
8 checks passed
@ElliotFriend
ElliotFriend deleted the move-redirects-to-config branch November 11, 2026 16:52

This branch was successfully deployed

1 active deployment
staging — e5c2100e Deployed Nov 10, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:ready-to-merge Bot verified and approved; waiting for a maintainer to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants