Introduction of the guide¶
Before we start the detailed learning of docs-like-code workflow, let's take few minutes to understand it from a general perspective.
Most of the content in this guide is from the book Docs-Like-Code. I just make a simple summary of this book combined with my own experiences with this workflow.
It advocates integrating documentation with development workflows, treating docs as code. It emphasizes version control, automation, and collaboration to manage documentation alongside code. Through examples, the book shows how to improve quality, maintainability, and teamwork, ideal for technical writers and developers.
Why treat docs like code?¶
Treating docs like code means that make writing documents and writing codes the same way.
Then, what does the way that code goes?
Mostly, programmer write and manage code in the following process and tools:
- Edit code in an IDE(Integrated Development Environment) like Visual Studio Code.
- Store and review code with code hosting platform like GitHub
- Collaborate and manage different versions with Git Branches.
- Tracking issues in Github
- Publish automatically with CI/CD systems like Github Actions.
Then, docs-like-code approach encourage us to write documents in the same process and related tools. You can see that this workflow leans heavily on Git and GitHub, which will be introduced in detail at other parts.
For more detailed purposes and introduction, you can read the book Docs-Like-Code. This guide is mainly focused on practices.
Structure of the guide¶
This guide is designed to help you master the Docs Like Code workflow through the following key sections:
Note
While the Docs-like-code workflow involves more than just tools like Git and GitHub, given the length of this document and GitHub's popularity, the focus here is primarily on Git and GitHub.
-
- Introduction: Git and GitHub for version control.
- Collaboration workflows: Pull Requests, branching, and team collaboration
- GitHub Desktop: A graphical user interface for easier Git management
-
- Introduction: Markdown syntax for lightweight documentation.
- Advanced formatting: Tables, code blocks, diagrams ...
-
- End-to-end workflow: From writing to publishing.
- Real-world examples: Explore open-source projects that use Docs Like Code.
- Hands-on practice: Create your first Pull Request and experience the "Hello World" of Docs Like Code.
-
- Curated tools: Open-source options like Sphinx, Docusaurus.
- Learning resources: Technical writing courses and community guidelines.
- Quick references: Templates and cheat sheets for efficient use.