Skip to content

feat(docs): add RSS 2.0 feed for documentation site#3

Draft
chris-han with Copilot wants to merge 8 commits into
mainfrom
copilot/add-rss-support
Draft

feat(docs): add RSS 2.0 feed for documentation site#3
chris-han with Copilot wants to merge 8 commits into
mainfrom
copilot/add-rss-support

Conversation

Copilot AI commented Feb 12, 2026

Copy link
Copy Markdown

Implements RSS feed at /rss.xml for documentation updates.

Changes

  • RSS endpoint (docs/app/rss.xml/route.ts): Next.js route handler generating RSS 2.0 XML with all documentation pages from Fumadocs source
  • Autodiscovery link (docs/app/layout.tsx): Added <link rel="alternate"> to HTML head for RSS reader detection

Implementation Details

  • XML escaping for text content (titles, descriptions); URLs kept unescaped per RSS spec
  • Date validation prevents invalid XML from malformed lastModified fields
  • ISR with 3600s revalidation matching cache headers
  • Type-safe page data handling with explicit interface
// URLs remain valid, text content is escaped
const title = escapeXml(page.data.title || 'Untitled');
const link = `${baseUrl}${page.url}`; // Not escaped

Feed accessible at https://docs.copilotkit.ai/rss.xml in production.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 5 commits February 12, 2026 14:06
Co-authored-by: chris-han <2083175+chris-han@users.noreply.github.com>
Co-authored-by: chris-han <2083175+chris-han@users.noreply.github.com>
Co-authored-by: chris-han <2083175+chris-han@users.noreply.github.com>
Co-authored-by: chris-han <2083175+chris-han@users.noreply.github.com>
Co-authored-by: chris-han <2083175+chris-han@users.noreply.github.com>
Copilot AI changed the title [WIP] Add RSS feed support feat(docs): add RSS 2.0 feed for documentation site Feb 12, 2026
Copilot AI requested a review from chris-han February 12, 2026 14:15
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.

2 participants