Skip to content

Add LLM site files#381

Merged
djalmaaraujo merged 3 commits intomainfrom
da/llms
May 7, 2026
Merged

Add LLM site files#381
djalmaaraujo merged 3 commits intomainfrom
da/llms

Conversation

@djalmaaraujo
Copy link
Copy Markdown
Contributor

@djalmaaraujo djalmaaraujo commented May 7, 2026

Summary

  • add routed /llms.txt, /llms-full.txt, and /sitemap.xml responses for the docs app
  • centralize generated content in SiteFiles and add site_files:generate for refreshable static copies
  • update robots.txt to advertise the sitemap and cover the routes with controller tests

Tests

  • bundle exec rails test test/controllers/site_files_controller_test.rb (Docker Ruby 3.4.7)
  • git diff --check

Fixes #345

@djalmaaraujo djalmaaraujo requested a review from cirdes as a code owner May 7, 2026 11:19
@djalmaaraujo djalmaaraujo changed the title Add LLM site files [render preview] Add LLM site files May 7, 2026
@djalmaaraujo
Copy link
Copy Markdown
Contributor Author

Update: added committed static copies in docs/public/ for /llms.txt, /llms-full.txt, and /sitemap.xml, generated from the same SiteFiles source. This keeps the routed responses and makes deploy/CDN static serving work without needing the Rails route to be hit first.

Validation added locally:

  • public files match SiteFiles generator output
  • public sitemap parses as XML
  • git diff --check

@djalmaaraujo djalmaaraujo temporarily deployed to da/llms - web-1 PR #381 May 7, 2026 11:40 — with Render Destroyed
@djalmaaraujo
Copy link
Copy Markdown
Contributor Author

Update: documented the generation flow in docs/README.md and added docs/CLAUDE.md with the instruction to update SiteFiles and run bin/rails site_files:generate whenever public routes/controllers/views add, remove, or rename URLs.

Validation: git diff --check.

@djalmaaraujo djalmaaraujo changed the title [render preview] Add LLM site files Add LLM site files May 7, 2026
@djalmaaraujo djalmaaraujo merged commit c13b7e1 into main May 7, 2026
4 checks passed
@djalmaaraujo djalmaaraujo deleted the da/llms branch May 7, 2026 12:46
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.

Improve documentation structure and semantic indexing for AI agents (LLM-friendly docs)

1 participant