The process for creating and maintaining GitLab product documentation allows anyone to contribute a merge request or create an issue for GitLab's documentation.
NOTE: Note: Documentation updates relating to new features or feature enhancements must use the feature workflow process described in the GitLab Handbook.
Who updates the docs?
Anyone can contribute! You can create a merge request for documentation when:
- You find errors or other room for improvement in existing documentation.
- You have an idea for all-new documentation that would help a GitLab user or administrator to accomplish their work with GitLab.
Regardless of the type of issue or merge request, certain labels are required when documentation is added or updated. The following are added by the issue or merge request author:
- An appropriate type label.
- The stage label and
group label. For example,
The following are also added by members of the Technical Writing team:
- A documentation scoped label with the
docs::prefix. For example,
~Technical Writingteam label.
Documentation changes that are not associated with the release of a new or updated feature
do not take the
~feature label, but still need the
They may include:
- Documentation created or updated to improve accuracy, completeness, ease of use, or any reason other than a feature change.
- Addressing gaps in existing documentation, or making improvements to existing documentation.
- Work on special projects related to the documentation.
How to update the docs
To update GitLab documentation:
- Follow the described standards and processes listed on the page, including:
- Follow GitLab's Merge Request Guidelines.
TIP: Tip: Work in a fork if you do not have Developer access to the GitLab project.
Request help from the Technical Writing team if you:
- Need help to choose the correct place for documentation.
- Want to discuss a documentation idea or outline.
- Want to request any other help.
To request help:
- Locate the Technical Writer for the relevant DevOps stage group.
- If urgent help is required, directly assign the Technical Writer in the issue or in the merge request.
- If non-urgent help is required, ping the Technical Writer in the issue or merge request.
If you are a member of GitLab's Slack workspace, you can request help in
Reviewing and merging
Anyone with Maintainer access to the relevant GitLab project can merge documentation changes. Maintainers must make a good-faith effort to ensure that the content:
- Is clear and sufficiently easy for the intended audience to navigate and understand.
- Meets the Documentation Guidelines and Style Guide.
If the author or reviewer has any questions, they can mention the writer who is assigned to the relevant DevOps stage group.
The process involves the following:
- Primary Reviewer. Review by a code reviewer or other appropriate colleague to confirm accuracy, clarity, and completeness. This can be skipped for minor fixes without substantive content changes.
- Technical Writer (Optional). If not completed for a merge request prior to merging, must be scheduled post-merge. Schedule post-merge reviews only if an urgent merge is required. To request a:
- Maintainer. For merge requests, Maintainers:
- Can always request any of the above reviews.
- Review before or after a Technical Writer review.
- Ensure the given release milestone is set.
- Ensure the appropriate labels are applied, including any required to pick a merge request into a release.
- Ensure that, if there has not been a Technical Writer review completed or scheduled, they create the required issue, assign to the Technical Writer of the given stage group, and link it from the merge request.
The process is reflected in the Documentation merge request template.
Other ways to help
If you have ideas for further documentation resources please create an issue using the Documentation template.
If not assigned to a Technical Writer for review prior to merging, a review must be scheduled immediately after merge by the developer or maintainer. For this, create an issue using the Doc Review description template and link to it from the merged merge request that introduced the documentation change.
Circumstances where a regular pre-merge Technical Writer review might be skipped include:
- There is a short amount of time left before the milestone release. If there are less than three days remaining, seek a post-merge review and ping the writer via Slack to ensure the review is completed as soon as possible.
- The size of the change is small and you have a high degree of confidence that early users of the feature (for example, GitLab.com users) can easily use the documentation as written.
- At GitLab, we treat documentation like code. As with code, documentation must be reviewed to ensure quality.
- Documentation forms part of the GitLab definition of done.
- That pre-merge Technical Writer reviews should be most common when the code is complete well in advance of a milestone release and for larger documentation changes.
- You can request a post-merge Technical Writer review of documentation if it's important to get the code with which it ships merged as soon as possible. In this case, the author of the original MR will address the feedback provided by the Technical Writer in a follow-up MR.
- The Technical Writer can also help decide that documentation can be merged without Technical writer review, with the review to occur soon after merge.
Ensure the following if skipping an initial Technical Writer review:
- That product badges are applied.
- That the GitLab version that introduced the feature has been included.
- That changes to headings don't affect in-app hyperlinks.
- Specific user permissions are documented.
- That new documents are linked from higher-level indexes, for discoverability.
- Style guide is followed:
NOTE: Note: Merge requests that change the location of documentation must always be reviewed by a Technical Writer prior to merging.