HeadlinesBriefing favicon HeadlinesBriefing.com

Automate AI-Ready Docs with retype_llms for Retype

DEV Community •
×

Retype documentation teams often struggle to keep content ready for AI tools, search engines, or internal analytics. The new retype_llms tool, a lightweight GitHub Action and Python utility, resolves this by automatically generating a single llms.txt file from all Markdown sources. It removes YAML front‑matter, consolidates files, adds clear section markers, resolves relative image paths, and preserves Retype’s routing logic.

The result is a clean, structured document that can be fed directly into summarization models, search indexers, or custom scripts without manual cleanup. Integration is seamless: run the script locally, or add the GitHub Action to your CI pipeline to produce llms.txt on every push. The tool also reports file counts, word totals, and token estimates, aiding AI cost planning.

By eliminating manual export steps, retype_llms saves developers hours and ensures documentation remains AI‑ready in minutes, making it an essential addition for teams using Retype on GitHub Pages. Its open‑source nature allows teams to customize the output format or integrate additional preprocessing steps as needed.