Doc-as-Code is a popular method for creating and sharing technical documentation. It uses version control systems, such as Git, to store the source code of the documents, and then uses static site generators to create the output. In this blog post, we will discuss why you should follow a GitLab-based approach when using Doc-as-Code. We will look at the benefits of using Doc-as-Code, what the GitLab-based approach is, its advantages, and how to set up an environment using GitLab. We will also compare GitLab with GitHub and discuss version control and API documentation. Finally, we will look at some popular static site generators for Doc-as-Code.