About Docs as Code
Docs as Code refers to a documentation workflow that applies the same development practices, standards, and review processes that software engineers use when working with code. The docs-as-code workflow is common because it provides a frictionless way for many different roles (such as software engineers, technical writers, or product managers) to contribute to a set of documentation in a repository.
The benefits of this workflow includes the following:
- Work with the same tools you use to write and manage code.
- Keep documentation in sync with the code.
- Track changes through version control and maintain a history of updates.
- Review documentation changes through pull requests, just like code.
- Maintain documentation standards through automated checks (such as linters for grammar, spelling, and style).
- Automate documentation builds and publishing.
The following description and diagram show a simplified workflow of the docs-as-code toolchain:
- Make Changes: Add or update documentation in your GitHub repository.
- Open a Pull Request: Propose your changes for review.
- Get Feedback: Collaborate with your team and incorporate feedback.
- Merge: Combine approved changes into the main branch.
- Publish: Deploy your documentation to your website.

The process is iterative, meaning you can continue making improvements as your documentation evolves.
Is Docs as Code right for your organization?
Docs as Code works particularly well when documentation is closely tied to software development and individuals are expected to contribute to the documentation. This workflow provides all contributors with a familiar workflow while allowing teams to apply the same quality standards and collaboration practices to documentation that they use for code. Technical writers and product managers don’t need to become software engineers, however, they do need to have an understanding of the various tools used in a docs-as-code workflow.
When is Docs as Code not right for your organization?
Docs as Code might not be right for your organization if your contributors are non-technical, such as colleagues from Legal, Sales, or Customer Operations. For these folks, documentation updates end up becoming a bottleneck and small edits become more complex when they’re not familiar with the tools and workflow. If the documentation is mostly meeting notes, onboarding checklists, or team wikis, using tools like Confluence or Google Docs might be a better fit because it doesn’t need an official published output. These types of documents allow for collaboration in real-time.
Lastly, if software engineers in your organization aren’t expected to contribute to documentation, it might not be necessary to adopt a docs-as-code workflow.
Next steps
- Make sure you understand Branches in GitHub in order to adopt the docs-as-code workflow.
- See About Git to understand the version control system and how it works in GitHub.
- Familiarize yourself with Markdown’s Basic Syntax.
- See Add a Markdown file to a GitHub repository to learn how to add your documentation.