Add JSON-LD and llms.txt for AI search - #73
Open
halskiszymon wants to merge 4 commits into
Open
Conversation
One local plugin injects Organization and SoftwareSourceCode structured data using the same @id as swmansion.com, and writes llms.txt from the pages Docusaurus just built. The publish workflow fails if the file is missing.
halskiszymon
marked this pull request as ready for review
August 20, 2026 12:13
This site sets routeBasePath: '/', so route segments never start with `docs` and the SECTIONS map never matched — every page fell into the generic `Pages` group. Sections are now derived from the page's folder when no explicit key matches. JSON.stringify leaves `<` unescaped, so a `</script>` inside any config value would close the tag early. Escaped to <.
`blog` and `examples` title-case to exactly the strings the map returned, so only `docs` -> `Documentation` was ever a real rename. Section names now come from the folder a page lives in, with that one exception.
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.
Two SEO changes for the docs site. Nothing changes the rendered page.
Organizationwith the same@idas swmansion.com, plusSoftwareSourceCode, derived fromsiteConfig. The identical@idis what makes engines read these docs and swmansion.com as one company instead of two unrelated sites.llms.txt, generated onpostBuild— no new dependency. The publish workflow fails if the file is missing or lists nothing.Both come from
docs/plugins/swm-geo.mjs, registered with one line. The same change is going out across the docs repos; reference: software-mansion/react-native-reanimated#10332.Worth knowing: this site is served from
software-mansion-labs.github.io, which has norobots.txtat all — the origin returns 404 for it, so there is noContent-Signaland no crawl policy for any of the 14 docs sites on it. Fixing that needs an org-level Pages repo (software-mansion-labs/software-mansion-labs.github.io), which does not exist. This PR is worth doing regardless, but it does not close that gap.