Repository navigation
Replace contentlayer with qino - #1244
CharlyMartin wants to merge 14 commits into
Conversation
|
@CharlyMartin is attempting to deploy a commit to the BEEKAI OSS Team on Vercel. A member of the Team first needs to authorize it. |
👷 Deploy request for sage-cassata-31d224 pending review.Visit the deploys page to approve it
|
|
@bluebill1049 is anything blocking the review? Can I help with anything? |
# Conflicts: # package.json # pnpm-lock.yaml
0220f54 to
bc32e1a
Compare
- declare pages on the docs tree, the integrations and advanced-usage collections, and the top-level items, with siteUrl and llms.txt sections - convert the site's MDX components to Markdown with markdownComponents - add src/content/llms.md, the llms.txt template with "When to use" - answer `.md` URLs and `Accept: text/markdown` from API routes under /api/md, with a Markdown 404 for unknown paths - advertise each page's Markdown with a Link header, Vary: Accept and <link rel="alternate" type="text/markdown"> - replace the hand-rolled Markdown and llms.txt generation with qino build, keeping the sitemap in scripts/generate-sitemap.mts - test the Accept-header match, which must run in linear time, with `pnpm test`
Kept as its own commit so it can be dropped on its own.
bc32e1a to
d117654
Compare
|
Hi @bluebill1049! Are you still interested in the migration in this PR? No worries if not, just tell me and I'll close it. FYI, I've just updated it, it's now up to date with
The site currently scores 61 on https://is-agentic.com/scan/react-hook-form.com, and I expect these changes to raise the agent readiness score by 10–15 points, though I haven't tested it because the previews don't deploy on this PR. This last commit (d117654) is about agent readiness more than tooling. The original 👋 |
|
Thanks for putting this together and for your effort! This is quite a large change to the documentation infrastructure, and we'd prefer to avoid a migration of this scope right now. We'll close this PR, but really appreciate your contribution! |
|
Ok, makes sense! Thanks for the feedback. PS: If you'd prefer a smaller PR (for now) off contentlayer, let me know! |
Key changes:
contentlayer2andnext-contentlayer2, and adds@qino/cmswith definitions inqino/: adocstree, anintegrationscollection and 6 items for the root pagessrc/lib/docs.ts, which loads every doc and builds breadcrumbs withgetAncestorNodes@mdx-js/mdxingetStaticProps(src/lib/mdx.ts) and runs it withrunSyncinsrc/pages/[...slug].tsxformstate.mdxreads its code examples from props instead of importsscripts/generate-markdown.mjsto.mts, run withtsx. It now also writespublic/sitemap.xml, which replacessrc/pages/sitemap.xml.tsx"type": "module", bumps Node to 24 and pins the new dependencies to exact versions{#id}headings fail its MDX parser)Rendered HTML, JSON-LD and
llms.txtare identical to a contentlayer build. The only diffs are informstate.mdandllms-full.txt, where the old output leakedimportlines.Fixes #1243
Note
Before merging: set the Vercel project's Node version to 24.