Skip to content

Conversation

@oatsandsugar
Copy link
Contributor

@oatsandsugar oatsandsugar commented Oct 29, 2025

Note

Adds an "LLM helpers" dropdown in docs with actions to copy page markdown, view TS/PY .txt, and open ChatGPT/Claude using a new /api/docs/raw endpoint; includes a minor CSS fix.

  • Docs UI:
    • LLM helper menu: New dropdown (LlmHelperMenu) in theme.config.jsx offering:
      • Copy current page Markdown (fetches from GET /api/docs/raw).
      • View TypeScript/Python .txt docs.
      • Open prefilled prompts in ChatGPT/Claude.
    • Replaces inline TS/PY links in EditLinks with the dropdown.
    • Utilities added: normalizePath, resolveAbsoluteUrl, buildLlmHref, buildLlmPrompt, copyTextToClipboard.
  • API:
    • New endpoint apps/framework-docs/src/pages/api/docs/raw.ts to serve raw markdown by scope/file with path sanitization and support for md(x), markdown, mdoc, and index variants.
  • Styling:
    • Fixes closing brace in globals.css WebKit media rule.

Written by Cursor Bugbot for commit 2a2072a. This will update automatically on new commits. Configure here.

@vercel
Copy link

vercel bot commented Oct 29, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
framework-docs Ready Ready Preview Comment Oct 30, 2025 1:03am

t
"moved button back, relocate didn't work"
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