Skip to content

fix: convert absolute /docs links to relative .mdx repo-wide#2549

Open
ElliotFriend wants to merge 1 commit into
stellar:mainfrom
ElliotFriend:fix/relative-links-sweep-2547
Open

fix: convert absolute /docs links to relative .mdx repo-wide#2549
ElliotFriend wants to merge 1 commit into
stellar:mainfrom
ElliotFriend:fix/relative-links-sweep-2547

Conversation

@ElliotFriend

Copy link
Copy Markdown
Contributor

Sub-task 1 of #2547 — the repo-wide sweep. Converts the remaining absolute /docs/... internal links to relative ../path/file.mdx links, matching the convention already used across the repo.

Changes

7 link occurrences across 5 files:

File Links converted
docs/tools/lab/transaction-dashboard.mdx Indexers, Block Explorers (#stellarexpert anchor preserved)
docs/validators/README.mdx Tier 1 Organizations
docs/validators/admin-guide/publishing-history-archives.mdx Tier 1 organizations
docs/validators/admin-guide/configuring.mdx Tier 1 participant, publishing a history archive
docs/validators/admin-guide/prerequisites.mdx Tier 1 (×2), reserve requirements (#base-reserves-and-subentries anchor preserved), Publishing History Archives

Deliberately excluded

  • docs/validators/tier-1-orgs.mdx — handled in its own PR fix: use relative .mdx links on Tier 1 Orgs page #2548 (fixes Link to MDX files on Tier 1 Orgs page #2546).
  • docs/platforms/anchor-platform/CONTRIBUTING.md — its /docs/... link is an intentional illustrative example, and the file is excluded from the docs build (docusaurus.config.ts line 143), so its links are never processed. Note: that file's "cross-plugin-instance" guidance appears stale — there is now a single docs plugin instance (routeBasePath: /docs), and relative links work across the whole docs/ tree. Worth a separate cleanup pass, out of scope here.

Verification

  • grep -rn '](/docs' docs/ returns only the two excluded files above
  • All relative targets confirmed to exist; both anchors (#stellarexpert, #base-reserves-and-subentries) verified against their headings
  • prettier -c (matches CI ci:mdx) passes

Note for sub-task 2 (the automated check)

The CI grep gate must exclude **/CONTRIBUTING.md — otherwise the deliberate example there is a false positive. Suggested: grep -rn '](/docs' docs/ --include='*.mdx' | grep -v CONTRIBUTING, or scope the gate to built pages only.

Part of #2547

🤖 Generated with Claude Code

Sweeps the remaining absolute /docs/... links (7 occurrences across 5
files) to relative ../path/file.mdx links per the repo convention.
Relative links with the file extension are validated at build time by
onBrokenMarkdownLinks; absolute route links are not.

Tier 1 Orgs page is handled separately in stellar#2546. CONTRIBUTING.md is
left untouched: it is excluded from the docs build and its /docs link
is an intentional illustrative example.

Part of stellar#2547

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 2, 2026 18:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR completes sub-task 1 of #2547 by converting remaining absolute internal /docs/... links to file-relative ../path/file.mdx links across the docs, aligning with the repo’s relative-link convention and enabling stronger build-time link validation.

Changes:

  • Replaced absolute /docs/... links with relative .mdx links in 5 docs files.
  • Preserved existing anchors during conversion (e.g., #stellarexpert, #base-reserves-and-subentries).
  • Updated links to point at concrete MDX targets that exist in-repo (including index README.mdx pages where applicable).

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
docs/tools/lab/transaction-dashboard.mdx Converts Indexers + Block Explorers links to relative .mdx targets (anchor preserved).
docs/validators/README.mdx Converts Tier 1 Orgs link to ./tier-1-orgs.mdx.
docs/validators/admin-guide/publishing-history-archives.mdx Converts Tier 1 Orgs link to relative ../tier-1-orgs.mdx.
docs/validators/admin-guide/configuring.mdx Converts Tier 1 + Publishing History Archives links to relative .mdx targets.
docs/validators/admin-guide/prerequisites.mdx Converts Tier 1, reserve requirements (anchor preserved), and Publishing History Archives links to relative .mdx targets.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@stellar-jenkins-ci

Copy link
Copy Markdown

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.

Link to MDX files on Tier 1 Orgs page

2 participants