Giant LLMs.txt#5192
Draft
Guaris wants to merge 2 commits into
Draft
Conversation
✅ Deploy Preview for kongdeveloper ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an additional LLM-ingestion artifact to the Jekyll build output by concatenating all rendered documentation pages into a single file, and optimizes the per-page renderer to avoid repeated Liquid rendering.
Changes:
- Add
LlmsFullWriter(invoked from the:site, :post_writehook) to generatellms-full.txtcontaining all rendered pages. - Memoize
MarkdownPage#renderso multiple consumers (page writer + full writer) don’t re-render the same content.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| app/_plugins/hooks/site_post_write.rb | Introduces LlmsFullWriter and registers it in the post_write hook to emit llms-full.txt. |
| app/_plugins/generators/markdown_pages_generator.rb | Memoizes MarkdownPage#render to prevent duplicate Liquid render work. |
Comment on lines
+157
to
+159
| > Every documentation page concatenated into a single Markdown file. Each page begins with its own YAML frontmatter block, so page boundaries are self-describing. | ||
|
|
||
| Use this file for RAG ingestion, fine-tuning data, large-context agents, or offline search. For a per-page index with links to individual Markdown files, see `llms.txt`. |
Comment on lines
+183
to
+187
| def pages | ||
| @pages ||= @site.config['markdown_pages_to_render'] | ||
| .reject { |p| p.data['canonical?'] == false } | ||
| .sort_by(&:url) | ||
| end |
Comment on lines
190
to
+194
| Jekyll::Hooks.register :site, :post_write do |site, _| | ||
| SupportedVersionAPI.process(site) | ||
| MarkdownPagesWriter.process(site) | ||
| LlmsTxtWriter.process(site) | ||
| LlmsFullWriter.process(site) |
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.
/llms-full.txt