You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mrdoob Thanks for driving this forward. Some thoughts:
I love to append a .md extension to the URL to get the markdown format like in my PR here. The change is quite small so it should be OK to add support? Alternatively a little link at the bottom of the HTML page to open the markdown file/copy markdown url comes to mind.
The llms.txt file should probably point to the markdown file instead of the HTML file since it's meant to be read / fetched by the LLMs right (see e.g. svelte.llms.txt or stripe.llms.txt)
Should there be some sitemap.xml or maybe all pages linked in the llms.txt to the individual markdown files? (maybe separated by sub-llms.txt, again as svelte does it, for addons / core / tsl, to keep the size reasonable, altough e.g. stripe also doesn't do that so maybe not an issue). Otherwise I'm wondering if these individual .md pages will even be discovered/used by an LLM?
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
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.
Related issue: #30774 (comment) #31933 (comment) #32660
Summary
Adds
llms.txtfiles following the llms.txt specification to help LLMs generate correct, modern Three.js code.What this does
@0.182.0) in import examplesFiles
/llms.txt/docs/llms.txt/docs/llms-full.txt/docs/pages/*.html.md/utils/llms/build.jsBuild integration
npm run build-llms- Generates all llms.txt filesnpm run build-docs- Now runs build-llms after JSDocDependencies
turndownfor HTML→Markdown conversion