feat(seo): add llms-full.txt with the full text of every document - #127
Merged
Conversation
llms.txt is only an index, so an assistant that wants the actual content has to crawl each URL or hit the per-post markdown API. Emit a companion llms-full.txt alongside it: every blog post, research entry, and portfolio project inlined verbatim under an H1 and a URL line, following the llmstxt.org convention. MDX bodies carry no H1 of their own (the page template renders the frontmatter title), so one H1 per document keeps the concatenated heading hierarchy intact. llms.txt now points at it from both Discovery and How to Use This Site. Both files are tracked and regenerated by the build, so the committed copies are the fallback and the build output is what ships. CI runs `git diff --exit-code` on the pair after the build, which fails a content edit that was committed without a regenerate.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
llms.txtis only an index, so an assistant that wants the actual content has to crawl each URL or hit the per-post markdown API. This adds a companionllms-full.txtfollowing the llmstxt.org convention: every blog post, research entry, and portfolio project inlined verbatim under an H1 and aURL:line.scripts/generate-llms-txt.jsthat already writesllms.txt.llms.txtnow points at it from both## Discoveryand# How to Use This Site.CI
Adds a
git diff --exit-codecheck on the pair after the build, so a content edit committed without a regenerate fails the run. This is the same class of silent drift that leftllms.txtsix posts stale.Caveat on impact
llms-full.txtis an unratified community convention. No major provider has confirmed using it as a retrieval or ranking input, and Google has said publicly it does not usellms.txt. This is cheap insurance if adoption happens, not a measurable ranking change today.Test plan
yarn generate:llmswrites both files; 26 documents, 171 KByarn buildregenerates both as part of the chained buildgit diff --exit-codeon the pair is clean after a build (the CI gate passes)yarn lint,yarn validate:sitemap,yarn validate:json-ld/llms-full.txtreturns 200text/plain