Generate llms.txt#68
Conversation
|
Warning Review limit reached
More reviews will be available in 34 minutes and 21 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
Adds first-class llms.txt generation to YiiPress builds, controlled by a new default-on llms_txt site config option, and documents the feature.
Changes:
- Introduces
SiteConfig::$llmsTxtplus YAML parsing support (llms_txt, defaulttrue) and a unit test to ensure it can be disabled. - Adds
LlmsTxtGenerator(with unit tests) and wires it intoBuildCommandoutput + dry-run output listing. - Updates documentation and roadmap to reflect the new build artifact and configuration option.
Reviewed changes
Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/Unit/Content/Parser/SiteConfigParserTest.php | Adds coverage for parsing llms_txt: false into SiteConfig::$llmsTxt. |
| tests/Unit/Build/LlmsTxtGeneratorTest.php | New unit tests covering file generation, disable behavior, content inclusion, and Markdown link escaping. |
| src/Content/Parser/SiteConfigParser.php | Parses llms_txt (default-on) into the SiteConfig model. |
| src/Content/Model/SiteConfig.php | Adds new readonly config flag llmsTxt with default true. |
| src/Console/BuildCommand.php | Runs LlmsTxtGenerator during build and includes llms.txt in dry-run output when enabled. |
| src/Build/LlmsTxtGenerator.php | Implements llms.txt generation from collection entries and standalone pages. |
| roadmap.md | Marks the “Generate llms.txt” roadmap item complete. |
| docs/configuration.md | Documents the new llms_txt option (default true) and adds it to the example config. |
| docs/commands.md | Documents llms.txt generation as a build step when llms_txt is enabled. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
Tests