Building Docs for the AI Era, Part 1: Self-Healing Docs
Blog post from Strapi
In the article "Building Docs for the AI Era, Part 1: Self-Healing Docs," Pierre Wizla, Strapi's Documentation Architect, introduces a pioneering self-healing documentation pipeline designed to maintain synchronization between code changes and documentation in a headless CMS. This system automatically generates documentation pull requests by analyzing code changes in Strapi's repository, utilizing progressive cost gating with a series of deterministic scripts and lightweight AI models to filter and process relevant changes. Over two months, this approach has resulted in the generation of 22 documentation PRs from 213 scanned, with a 64% acceptance rate and minimal AI costs. Emphasizing human oversight, the system allows for AI to handle initial drafting while human experts ensure accuracy and contextual relevance, thus addressing the industry's challenge of shrinking documentation teams. The pipeline's open-source nature invites adaptation by other projects with separate code and documentation repositories, offering a model for integrating AI into documentation workflows to achieve comprehensive and timely updates.