Skip to content

refactor(rfcs): centralize RFC sidebar and source metadata#205

Open
JoblersTune wants to merge 1 commit intomainfrom
sj/clean-up-spec-repitition
Open

refactor(rfcs): centralize RFC sidebar and source metadata#205
JoblersTune wants to merge 1 commit intomainfrom
sj/clean-up-spec-repitition

Conversation

@JoblersTune
Copy link
Contributor

@JoblersTune JoblersTune commented Mar 23, 2026

PR Checklist

  • Linked issue added (e.g., Fixes #123)
  • I have run bun run format to ensure code is properly formatted
  • I have verified that bun run lint passes without errors
  • If blog post was added:
    • Ensure images have been optimised
    • Update dates to reflect the actual publishing date when merged (file names, folder names, and frontmatter)

Summary

This PR centralizes published RFC metadata in src/data/rfcs.ts so it can act as the single source of truth for RFC routes, titles, and raw source URLs.

The Starlight sidebar in astro.config.mjs now derives its RFC entries from that shared data instead of duplicating each label and link inline. The RFC MDX pages under src/content/docs/rfcs were also updated to resolve their Rfc component source prop via getRfcById(...) rather than hardcoded GitHub raw URLs. This reduces repetition and keeps sidebar navigation and RFC page sources aligned from one place.

You can test by clicking through the spec here https://deploy-preview-205--developers-preview.netlify.app/developers/rfcs/interledger-protocol/

@JoblersTune JoblersTune self-assigned this Mar 23, 2026
@netlify
Copy link

netlify bot commented Mar 23, 2026

Deploy Preview for developers-preview ready!

Name Link
🔨 Latest commit 64c6490
🔍 Latest deploy log https://app.netlify.com/projects/developers-preview/deploys/69c173892dbaa70008884656
😎 Deploy Preview https://deploy-preview-205--developers-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

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