Documentation in source control
Blog post from Aspect Build
Writing developer documentation within source control is advocated as an effective method to integrate it seamlessly with code, ensuring versioning, easy accessibility, and simultaneous updates with related code changes. This approach allows for the use of familiar tools for reviewing and editing, such as diffing and bisecting, and leverages existing CODEOWNERS setups for appropriate review processes. However, presenting the documentation attractively is essential, with options like GitHub Pages or static rendering tools suggested for enhancing visibility. While this method offers several advantages, it might not be suitable when non-engineers require easy editing access, as they might find tools like git and Markdown cumbersome. Therefore, the presentation and editing ease must be optimized to encourage the maintenance and updating of documentation, and exceptions should be made for non-technical documentation.