Skip to content

fix(docs): correct "Edit on GitHub" links for components and examples#389

Open
WillGarman wants to merge 1 commit intovercel:mainfrom
WillGarman:fix/edit-source-github-links
Open

fix(docs): correct "Edit on GitHub" links for components and examples#389
WillGarman wants to merge 1 commit intovercel:mainfrom
WillGarman:fix/edit-source-github-links

Conversation

@WillGarman
Copy link
Contributor

@WillGarman WillGarman commented Feb 28, 2026

Recreate

  1. Go to any /components page like https://elements.ai-sdk.dev/components/attachments
  2. Click "Edit this page on GitHub"
  3. 404

Summary

  • The EditSource component hardcoded content/docs/ in the GitHub edit URL, causing 404s for /components/* and /examples/* pages
  • Added a contentDir prop to EditSource so each page section passes its correct content directory (docs, components, or examples)
  • /docs/* pages are unaffected (uses "docs" as the default)

…ples

The EditSource component hardcoded `content/docs/` in the GitHub edit URL,
causing 404s for component and example pages whose content lives under
`content/components/` and `content/examples/` respectively.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel
Copy link
Contributor

vercel bot commented Feb 28, 2026

@WillGarman is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@WillGarman WillGarman changed the title fix: correct Edit on GitHub links for components and examples fix(docs): correct "Edit on GitHub" links for components and examples Feb 28, 2026
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.

1 participant