mix llms.txt (llms_txt v0.1.0)

Copy Markdown View Source

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.txt

Options

  • --output DIR - directory the llms.txt files are written to (defaults to priv/llms). Each package gets its own versioned subdirectory: priv/llms/<package>/<version>/llms.txt.
  • --no-fetch - skip mix hex.docs fetch and only (re)convert the docs that were already fetched locally.