Skip to content

Add JSON-LD and llms.txt for AI search - #155

Merged
piotmag769 merged 2 commits into
software-mansion:mainfrom
halskiszymon:geo-structured-data
Aug 25, 2026
Merged

Add JSON-LD and llms.txt for AI search#155
piotmag769 merged 2 commits into
software-mansion:mainfrom
halskiszymon:geo-structured-data

Conversation

@halskiszymon

Copy link
Copy Markdown
Contributor

Two SEO changes for the website. Nothing changes the rendered page.

  • JSON-LD via transformHead: Organization with the same @id as swmansion.com, plus SoftwareSourceCode, both derived from siteConfig. The identical @id is what makes engines read this site and swmansion.com as one entity instead of two unrelated ones.
  • llms.txt via buildEnd, written from the pages VitePress just built — no new dependency. The workflow fails if the file is missing or lists nothing.

Both live in website/.vitepress/swm-geo.mjs; the config gains an import and two lines. The same change is going out across the docs repos; reference: software-mansion/react-native-reanimated#10332.

Check: this workflow only runs on push and dispatch, so the new step could not run on this PR. It sits before the Pages upload, so a broken llms.txt blocks the deploy rather than shipping silently. The equivalent step is green in the Docusaurus repos, listing 25 to 90 pages.

One module injects Organization and SoftwareSourceCode structured data using
the same @id as swmansion.com, and writes llms.txt from the pages VitePress
just built. The workflow fails if the file is missing or lists nothing.
@halskiszymon
halskiszymon marked this pull request as ready for review August 20, 2026 10:11
@piotmag769
piotmag769 added this pull request to the merge queue Aug 25, 2026
Merged via the queue into software-mansion:main with commit ffe86bd Aug 25, 2026
2 checks passed
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.

2 participants