Transforming Ripgrep's Documentation with AI Automation and MkDocs entropicdrift...
HN Best 200 @best
Transforming Ripgrep's Documentation with AI Automation and MkDocs entropicdrift.com · 13 points · 4 comments · HN thread
TL;DR The author describes a third-generation AI documentation workflow that turned ripgrep's two-file docs (README and GUIDE) into a 55-page MkDocs Material site, live at iepathos.github.io/ripgrep. The workflow adds automatic page splitting, per-page visual enhancements such as Mermaid diagrams and admonitions, and a custom tool called mermaid-sonar that checks diagram complexity as well as syntax.
- The original ripgrep docs were a README and a GUIDE totalling about 1,800 lines; the GUIDE was over 1,400 lines and was split into focused subpages when it exceeded 300 lines or five major sections.
- The generated site has 55 pages in 7 sections, 87 Mermaid diagrams, 358 admonitions, 180+ code annotations and tabbed install instructions, and reportedly passes mkdocs build --strict.
- The workflow runs in three phases: setup (gap detection, page splitting, filesystem discovery), a per-page map phase that fixes drift and adds visuals, and a holistic reduce phase that runs strict builds and Mermaid validation.
- Mermaid-sonar measures node counts, branching, and graph density to flag overly complex diagrams, catching 8 broken and 12 overly complex diagrams in the ripgrep run.
- The author presents the project as early work and notes that the docs are not perfect; the workflow was built originally for the Prodigy and Debtmap projects.
Discussion The thread is short and skeptical. The top comment argues that most ripgrep users will ask an AI tool rather than read docs, so generated reference material has little use, while AI-written docs may still help readers build mental models. A reply jokes that AI agents likely spend many tokens running rg itself. Another commenter questions whether MkDocs is still maintained, and a third calls the post AI-generated and not worth criticizing at length, linking an AI-detection result. The overall mood is dismissive, with little engagement with the technical details of the workflow.
- AI assistants make human-facing reference docs unnecessary (some): Commenters argue that users now ask ChatGPT or similar tools rather than reading docs. They think AI-generated docs are most useful for mental models and high-level overviews, not reference material.
- The post is AI slop not worth engaging with (some): One commenter links an AI-text detection result and says the post and its prompts do not merit a detailed critique.
- Questions whether MkDocs is still maintained (a few): One commenter asks if the MkDocs project is unmaintained, raising a question about the tooling choice without elaboration.
- Irony that AI tools rely on rg output (a few): A reply points out that AI agents probably use ripgrep heavily themselves, so their token spend largely goes to running rg and reading its output.
Links from the comments