Skip to content

Docs: prerender llms.txt so GitHub Pages publishes /llms.txt - #49353

Merged
pelikhan merged 1 commit into
mainfrom
copilot/fix-docs-generation-llms-txt
Jul 31, 2026
Merged

Docs: prerender llms.txt so GitHub Pages publishes /llms.txt#49353
pelikhan merged 1 commit into
mainfrom
copilot/fix-docs-generation-llms-txt

Conversation

Copilot AI commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

The docs pipeline generated llms-full.txt but did not consistently emit llms.txt as a static artifact, so the expected endpoint was not reliably served from GitHub Pages. This change makes llms.txt part of the static output contract.

  • Route rendering mode

    • Marked docs/src/pages/llms.txt.ts as prerendered so Astro includes /llms.txt in docs/dist during build.
    • Aligns llms.txt behavior with other published text endpoints in the docs site.
  • Impact

    • Ensures https://github.com/githubnext/gh-aw/llms.txt (Pages-served path) resolves to a generated static file after deployment.
    • Keeps existing content generation logic unchanged; only output mode is adjusted.
// docs/src/pages/llms.txt.ts
export const prerender = true;

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title Fix docs generation to publish llms.txt Docs: prerender llms.txt so GitHub Pages publishes /llms.txt Jul 31, 2026
Copilot AI requested a review from pelikhan July 31, 2026 14:01
@pelikhan
pelikhan marked this pull request as ready for review July 31, 2026 14:03
Copilot AI review requested due to automatic review settings July 31, 2026 14:03
@pelikhan
pelikhan merged commit 61a96fb into main Jul 31, 2026
@pelikhan
pelikhan deleted the copilot/fix-docs-generation-llms-txt branch July 31, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.txt route.
  • 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;
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.84.1

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.

3 participants