docs: add llms.txt - #16312
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds generation and checked-in output for a Mongoose llms.txt documentation index, integrating it into the existing docs generation flow.
Changes:
- Adds
scripts/generateLLMsTXT.jsto builddocs/llms.txtfrom the docs file map. - Wires llms.txt generation into
scripts/website.js. - Updates tutorial/TypeScript title prefixes and syncs one tutorial snippet with its acquit source.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
scripts/generateLLMsTXT.js |
New generator for grouped llms.txt documentation links. |
scripts/website.js |
Calls and exports the llms.txt generator during docs rendering. |
docs/llms.txt |
Generated llms.txt documentation index. |
docs/source/tutorials.js |
Changes tutorial title prefix used by mapped subdocs. |
docs/source/typescript.js |
Changes TypeScript title prefix used by mapped subdocs. |
docs/tutorials/findoneandupdate.md |
Removes comments from an acquit-backed example block. |
hasezoey
requested changes
Jun 1, 2026
hasezoey
left a comment
Collaborator
There was a problem hiding this comment.
Mostly looks good to me, though some style nitpicks.
Note that i minimized duplicate Copilot comments. (because for some reason there were 3 comments each time)
hasezoey
requested changes
Jun 4, 2026
AbdelrahmanHafez
approved these changes
Jun 5, 2026
hasezoey
requested changes
Jun 5, 2026
Collaborator
There was a problem hiding this comment.
As Copilot also already pointed out, this file's function should take into account being versioned and generate the file in the correct path.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Summary
Add a script to generate an llms.txt in line with MongoDB's and Vue's
Examples