feat(docs): improve search + LLM discoverability#870
Merged
Conversation
- json-ld: render via dangerouslySetInnerHTML with < escaped so structured data survives in the DOM (React was HTML-escaping the <script> children, breaking every breadcrumb/article/org block) - sitemap: add blog posts, learn steps, showcase entries, and the /learn /blog /showcase /stack /community /evals routes (was docs-only) - robots: allow /api/og so OG preview images are crawlable - not-found: noindex 404 to keep soft-404s out of the index
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Lighthouse
Run by |
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.
What
Docs already had a strong SEO base (robots AI-bot allowlist, llms.txt/llms-full.txt, per-page OG + canonical, breadcrumb/article JSON-LD). This closes the remaining findability gaps.
Changes
dangerouslySetInnerHTMLwith<escaped to<. React was HTML-escaping<script>text children, corrupting every structured-data block (home Organization/SoftwareApplication/WebSite, all docs breadcrumb + TechArticle) so Google / LLM crawlers couldn't parse it. Content is app-controlled + escaped — canonical Next.js JSON-LD pattern./learn/blog/showcase/stack/community/evals. ~33 URLs now discoverable./api/og(was blocked by/api/disallow) so OG preview images are crawlable for image search / social.noindexthe 404 to keep soft-404s out of the index.Verification
tsc --noEmitclean on@agentskit/docs-nextNot in scope
PT hreflang in sitemap — deferred until EN stabilises per i18n roadmap.