Fetches the HTML documentation for every Hex dependency at its installed
version with mix hex.docs fetch, converts each page to Markdown with
Htmd and writes one llms.txt per package.
After generating, it prunes stale documentation: outdated version directories and packages that are no longer dependencies are removed, so the output directory always mirrors the current lock file.
Usage
mix llms.txtOptions
--output DIR- directory thellms.txtfiles are written to (defaults topriv/llms). Each package gets its own versioned subdirectory:priv/llms/<package>/<version>/llms.txt.--no-fetch- skipmix hex.docs fetchand only (re)convert the docs that were already fetched locally.