-
-
Notifications
You must be signed in to change notification settings - Fork 2
feature: Auto-generate llms.txt #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@pawamoy I'd like to work on this one as we'll want to also have a proper llms.txt file for our documentation. Here is the proposed way to do so:
Does that sound good to you? |
Thanks for offering your help @Viicos! My own suggestion is:
About the title and summary, maybe we could already use About the optional inputs you mention: I wonder if we couldn't "simply" split input files in sections. If List (current behavior): plugins:
- llmstxt:
files:
- output: llms.txt
inputs:
- file1.md
- reference/*/*.md Dict (new additional behavior): plugins:
- llmstxt:
files:
- output: llms.txt
inputs:
Docs:
- file1.md
Optional:
- reference/*/*.md
External resources:
- https://example.com Such a dict format would only be useful when the output file is WDYT 😄 ? |
I can't find any mention of "llms-full.txt" on https://llmstxt.org/ anymore 🤔 So I'm starting to question the usefulness of being able to choose the output file. Is llms-full.txt still a thing? |
I'm not even sure it was a thing. It is mentioned for an example project, FastHTML, but it is mentioned that they use a different XML format. And their "full" output doesn't mean concatenate everything, but rather that it includes the "optional" section. Your inputs proposed format looks like it could work |
Thanks. Then I'm open to completely rework the plugin, so that it just follows the spec. We would remove plugins:
- llmstxt:
sections:
Docs:
- file1.md
Optional:
- reference/*/*.md
External resources:
- https://example.com In most cases the |
Issue-1: #1 PR-4: #4 Co-authored-by: Timothée Mazzucotelli <[email protected]>
Released as 0.2.0. |
Thanks. :) |
Is your feature request related to a problem? Please describe.
@Kludex pointed out that what this plugin generates is llms-full.txt. Per the spec, the llms.txt file is just a summary:
Example: https://docs.cursor.com/llms.txt. More examples https://llmstxthub.com/.
Describe the solution you'd like
mkdocs-llmstxt could:
...but it couldn't (at least not automatically):
Describe alternatives you've considered
/
Additional context
/
The text was updated successfully, but these errors were encountered: