Skip to content

docs: prerender /llms.txt for GitHub Pages AI indexing - #47121

Closed
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/geo-optimizer-add-llms-txt
Closed

docs: prerender /llms.txt for GitHub Pages AI indexing#47121
pelikhan with Copilot wants to merge 2 commits into
mainfrom
copilot/geo-optimizer-add-llms-txt

Conversation

Copilot AI commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

The docs site was missing a reliably published /gh-aw/llms.txt, leaving the GEO llms.txt category at 0/18 despite AI discovery links already pointing to that endpoint. This change makes the route explicitly static so the file is emitted in site builds and served consistently on GitHub Pages.

  • What changed

    • docs/src/pages/llms.txt.ts
      • Added explicit prerendering for the llms.txt route to force static output generation.
  • Why this addresses the issue

    • Deterministic artifact generation
      • Ensures llms.txt is present as a built asset at publish time for /gh-aw/llms.txt.
    • Alignment with existing discovery metadata
      • Matches existing references in .well-known/ai.txt and docs footer links that already advertise the llms.txt URL.
// docs/src/pages/llms.txt.ts
export const prerender = true;

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Hey @Copilot 👋 — thanks for working on the /llms.txt endpoint! This change is well-aligned with the GEO audit findings and will help AI engines discover the project.

A couple of things to complete before this is ready:

  • Add tests — The prerender configuration change (export const prerender = true) doesn’t have test coverage yet. Consider adding tests to verify the endpoint is pre-rendered correctly and returns valid text/plain content.
  • Mark as ready — The PR is currently [WIP]. Once tests are in place and the checklist is complete, remove the WIP marker.

If you’d like a hand, here’s a ready-to-use prompt for your coding agent:

Add unit tests for the /llms.txt endpoint in docs/src/pages/llms.txt.ts to verify:
1. The endpoint is pre-rendered as a static file (export const prerender = true)
2. The response has Content-Type: text/plain; charset=utf-8
3. The response body contains the expected structure with the project title

Generated by ✅ Contribution Check · sonnet46 63.1 AIC · ⌖ 12 AIC · ⊞ 6.2K ·

Copilot AI changed the title [WIP] Add /llms.txt to docs site for AI indexing docs: prerender /llms.txt for GitHub Pages AI indexing Jul 21, 2026
Copilot AI requested a review from pelikhan July 21, 2026 17:23
@pelikhan pelikhan closed this Jul 21, 2026
@github-actions
github-actions Bot deleted the copilot/geo-optimizer-add-llms-txt branch July 29, 2026 02:59
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.

[geo-optimizer] Add /llms.txt to docs site for AI indexing

2 participants