Skip to content

feat(docs): improve LLM/search discoverability of docs#566

Open
bensabic wants to merge 5 commits into
mainfrom
feat/docs-llm-discoverability
Open

feat(docs): improve LLM/search discoverability of docs#566
bensabic wants to merge 5 commits into
mainfrom
feat/docs-llm-discoverability

Conversation

@bensabic
Copy link
Copy Markdown
Contributor

SEO/AEO improvements for the docs site:

  • Append | Chat SDK to every page's <title> and og:title (home stays Chat SDK).
  • Expose a plain-markdown version of every docs and adapter page via an sr-only AI/LLM hint link and a text/markdown alternate; adapter pages get a new /adapters/<group>/<slug>.md endpoint.
  • Turn llms.txt into a sitemap-style index linking to each page's markdown, and move the full-text concatenation to llms-full.txt. A <link rel="llms-txt"> is added to every page.

bensabic added 4 commits May 29, 2026 16:50
Add a title template in the root layout so every page's <title> and
og:title render as "<Page> | Chat SDK", with explicit og:title strings
on pages that set their own openGraph. The home page stays "Chat SDK".

Also registers a <link rel="llms-txt"> on every page.
Surface a plain-markdown URL for every docs and adapter page via an
sr-only, aria-hidden link (for AI/LLM crawlers) plus a text/markdown
alternate.

- Add an /adapters/<group>/<slug>.md endpoint (new adapters.mdx route +
  proxy rewrite) that serves the adapter's README or MDX body.
- Extract shared README resolution into lib/geistdocs/adapter-readme.ts,
  deduped from the community and vendor-official pages, and add
  getAdapterLLMText.
- Fix the docs markdown alternate to join nested slugs with "/".
Rewrite llms.txt as a curated index that links to the markdown version
of every docs and adapter page, grouped by section. Move the previous
full-text concatenation of every page to llms-full.txt.
Add content-validation tests guarding the invariants the llms.txt index
and the markdown routes rely on: every docs page has a title and
description, and adapter content groups map to well-formed
/adapters/<group>/<slug>.md URLs.
@bensabic bensabic requested a review from a team as a code owner May 29, 2026 06:52
@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 29, 2026

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

Project Deployment Actions Updated (UTC)
chat Ready Ready Preview, Comment, Open in v0 May 29, 2026 6:59am
chat-sdk-nextjs-chat Ready Ready Preview, Comment, Open in v0 May 29, 2026 6:59am

The integration-tests package is private and already in the changeset
`ignore` list, so changes to it should not require a changeset. Skip it
in the "packages changed" detection like packages/chat/resources.
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.

1 participant