Repository navigation
Fix the docs "View & Edit" link - #43073
Merged
Merged
Conversation
julien-deramond
marked this pull request as ready for review
October 13, 2026 17:20
…at main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
julien-deramond
force-pushed
the
main-jd-view-edit-link-to-main
branch
from
October 13, 2026 17:21
11d1972 to
c709999
Compare
Member
Author
|
@mdo FYI I chose for now to not apply this change manually to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The "View & Edit" link on every v6 docs page was a 404. Astro's
glob()loader gives docs entries anidwithout the file extension, so the link pointed at.../site/src/content/docs/getting-started/installinstead of.../getting-started/install.mdx. The link now adds.mdxand points atmaininstead of thev6.0.0-alpha.1tag, since GitHub won't let anyone edit a file from a tag.Closes #43060.
What was done
site/src/components/PageMeta.astro:blob/v${current_version}/site/src/content/docs/${id}becameblob/main/site/src/content/docs/${id}.mdx..mdx(no.mdleft undersite/src/content/docs), so a fixed extension is enough. Checkedblob/main/site/src/content/docs/components/button(404) against.../button.mdx(200).blob/v[[config:current_version]]links (contribute and approach pages) and the Example/Code shortcodes alone: they are source links tied to the released version, and the issue doesn't cover them.blobrather than GitHub'sedit/main/...URL, as v5 does, because the label is "View & Edit".How to review
npm run docs-dev, open any docs page (for example Getting started → Install), click "View & Edit", and check that it openshttps://github.com/twbs/bootstrap/blob/main/site/src/content/docs/getting-started/install.mdxwith GitHub's edit (pencil) button.🤖 Generated with Claude Code