Docs: prerender llms.txt so GitHub Pages publishes /llms.txt - #49353
Merged
Conversation
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
Fix docs generation to publish llms.txt
Docs: prerender Jul 31, 2026
llms.txt so GitHub Pages publishes /llms.txt
Copilot created this pull request from a session on behalf of
pelikhan
July 31, 2026 14:01
View session
pelikhan
marked this pull request as ready for review
July 31, 2026 14:03
Contributor
There was a problem hiding this comment.
🟢 Ready to approve
The implementation is correct; only the PR description contains a non-blocking incorrect endpoint URL.
This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.
Pull request overview
Ensures Astro emits /llms.txt as a static GitHub Pages artifact.
Changes:
- Enables prerendering for the
llms.txtroute. - Aligns it with
llms-full.txt.
File summaries
| File | Description |
|---|---|
docs/src/pages/llms.txt.ts |
Enables static generation of /llms.txt. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 1
- Review effort level: Balanced
We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.
| import type { APIRoute } from 'astro'; | ||
| import { getAwPrompts } from './_aw-prompts.js'; | ||
|
|
||
| export const prerender = true; |
Contributor
|
🎉 This pull request is included in a new release. Release: |
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.
The docs pipeline generated
llms-full.txtbut did not consistently emitllms.txtas a static artifact, so the expected endpoint was not reliably served from GitHub Pages. This change makesllms.txtpart of the static output contract.Route rendering mode
docs/src/pages/llms.txt.tsas prerendered so Astro includes/llms.txtindocs/distduring build.llms.txtbehavior with other published text endpoints in the docs site.Impact
https://github.com/githubnext/gh-aw/llms.txt(Pages-served path) resolves to a generated static file after deployment.