Skip to content

Conversation

@R44VC0RP
Copy link
Contributor

@R44VC0RP R44VC0RP commented Dec 19, 2025

Summary

  • Adds a new API endpoint that serves raw MDX content when .md is appended to any docs URL
  • Enables programmatic access to documentation source files

Examples

  • /docs/config.md → returns raw MDX for the config page
  • /docs/index.md → returns raw MDX for the index page
  • /docs/mcp-servers.md → returns raw MDX for the MCP servers page

Implementation

Uses Astro's content collections API to look up docs by slug and returns the raw body content with text/plain content type.

Example:

image

Adds a new endpoint that returns raw MDX content when .md is appended
to any docs URL. For example, /docs/config.md returns the raw MDX
source for the config page.

This is useful for programmatic access to documentation content.
@R44VC0RP R44VC0RP changed the title feat(docs): add raw MDX endpoint for docs pages feat(docs): adding .md to docs pages shows raw markdown Dec 20, 2025
@rekram1-node
Copy link
Collaborator

/review

@github-actions
Copy link
Contributor

lgtm

@rekram1-node rekram1-node merged commit ad6a5e6 into sst:dev Dec 20, 2025
2 checks passed
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