-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: per-page md for llms #43
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@@ -0,0 +1,27 @@ | |||
import { NextResponse } from "next/server"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core functionality for the backend
@@ -0,0 +1,121 @@ | |||
"use client"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core functionality for the frontend
@@ -0,0 +1,161 @@ | |||
"use client"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
everything hereafter are mostly "ejected" components, with small tweaks to add the features above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Summary
implements a per-page button where you can copy the md content to your clipboard, or view the raw md in another tab. modeled off of Stripe's docs

Details
/raw/<docs_file>.md
, served by a/raw/[[...slug]
API that reads/serves the filecomponents/md-copy/actions.tsx
component andapp/raw/[...slug]/route.ts
route to handle this