feat: serve the site in a form agents can read - #41
Merged
Merged
Conversation
Every page now has a Markdown twin at its path with .md added, generated at build from the same MDX and linked from the page as a text/markdown alternate. llms.txt indexes the projects and docs, llms-full.txt carries every page in one file, and sitemap.xml and robots.txt are built from content/ so a new page is listed the moment it exists. Each page also carries schema.org JSON-LD saying what it describes: the library as source code, Plaza, Notary and deed as applications, the home page as the organization and the site. The IndexNow key file lets changed pages be announced to search engines directly.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Closes #40
Every page gets a Markdown twin at its path with
.mdadded, generated at build byscripts/agent-files.mjsfrom the same MDX (JSX turned into Markdown, code blocks left alone) and linked from the page with<link rel="alternate" type="text/markdown">. The generated files are gitignored, so they can never drift from the pages.Also added:
/llms.txt(hand-written index of projects, the two agent skills, and the docs),/llms-full.txt(every page in_metaorder),/sitemap.xmland/robots.txtbuilt fromcontent/, schema.org JSON-LD per page, and the IndexNow key file. The site URL still comes from the environment only; the layout, sitemap, robots and JSON-LD now share it fromapp/site-url.js.Checked locally with
next start: all of/robots.txt,/sitemap.xml,/llms.txt,/llms-full.txt,/deed.md,/index.mdand the key file return 200 with the right content types, and the builtdeed.htmlcarries the alternate link and its JSON-LD.