Skip to content

feat(components): render upstream rule docs link in RuleReferences#1137

Merged
Boshen merged 1 commit into
mainfrom
add-upstream-rule-docs-link
May 27, 2026
Merged

feat(components): render upstream rule docs link in RuleReferences#1137
Boshen merged 1 commit into
mainfrom
add-upstream-rule-docs-link

Conversation

@Boshen

@Boshen Boshen commented May 27, 2026

Copy link
Copy Markdown
Member

Summary

Adds an upstream prop on the <RuleReferences /> component. When set, an "Upstream rule docs" link is rendered at the top of the references list, pointing at the original ESLint plugin's docs page for the rule.

Used by oxc-project/oxc#22769, which writes the upstream URL on every auto-generated rule docs page (skipped for native oxc rules and unknown plugins).

After both PRs land, each rule page on oxc.rs will surface the upstream rule docs alongside the existing "Rule Source" / "Playground" links.

🤖 Generated with Claude Code

@netlify

netlify Bot commented May 27, 2026

Copy link
Copy Markdown

Deploy Preview for oxc-project ready!

Name Link
🔨 Latest commit 7f2b570
🔍 Latest deploy log https://app.netlify.com/projects/oxc-project/deploys/6a1700c30b84da00080623ea
😎 Deploy Preview https://deploy-preview-1137--oxc-project.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Read an optional `upstream` field from the page's frontmatter (matching the
rest of the rule-page data flow — `rule`, `type_aware`, etc.) and, when
present, render an "Upstream rule docs" link directly below "Rule Source"
in the references list.

Used by oxc-project/oxc#22769 which writes the upstream URL into the
frontmatter of every auto-generated rule docs page (skipped for native oxc
rules and unknown plugins).
@Boshen Boshen force-pushed the add-upstream-rule-docs-link branch from c311f01 to 7f2b570 Compare May 27, 2026 14:33
@Boshen Boshen merged commit ee105c4 into main May 27, 2026
7 checks passed
@Boshen Boshen deleted the add-upstream-rule-docs-link branch May 27, 2026 14:40
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