Skip to content

fix(astro): changing remark md links to respect trailingslash rules#199

Open
ChronosSF wants to merge 4 commits into
masterfrom
sstoychev/fix-in-topic-links
Open

fix(astro): changing remark md links to respect trailingslash rules#199
ChronosSF wants to merge 4 commits into
masterfrom
sstoychev/fix-in-topic-links

Conversation

@ChronosSF
Copy link
Copy Markdown
Member

Closes #191

@ChronosSF ChronosSF requested review from Copilot and dobromirts May 22, 2026 09:09
@ChronosSF ChronosSF added the ❌ status: awaiting-test PRs awaiting manual verification label May 22, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the docs build’s Markdown link rewriting to align generated internal URLs with Astro’s trailingSlash configuration, addressing 404s caused by mismatched trailing-slash behavior (closes #191).

Changes:

  • Add DOCS_TRAILING_SLASH env propagation from the Astro config options.
  • Update the remark plugin link rewriting to conditionally include or omit a trailing slash based on DOCS_TRAILING_SLASH.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/plugins/remark-md-links.ts Adjusts rewritten .md links to respect configured trailing-slash behavior.
src/integration.ts Exposes Astro trailingSlash setting via process.env for remark/plugin consumption.

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

Comment thread src/plugins/remark-md-links.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

❌ status: awaiting-test PRs awaiting manual verification

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[XPLAT docs] Links between topics are throwing 404 errors

3 participants