2020-10-30 20:09:08 -04:00
---
stage: none
group: unassigned
2020-11-26 01:09:20 -05:00
info: To determine the technical writer assigned to the Stage/Group associated with this page, see https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments
2020-10-30 20:09:08 -04:00
---
2019-10-14 02:06:06 -04:00
# Documentation process
2018-08-16 05:30:04 -04:00
2020-05-04 14:10:20 -04:00
The process for creating and maintaining GitLab product documentation allows
2020-12-10 13:10:16 -05:00
anyone to contribute a merge request or create an issue for GitLab
2020-05-04 14:10:20 -04:00
documentation.
2018-08-16 05:30:04 -04:00
2020-05-04 14:10:20 -04:00
Documentation updates relating to new features or feature enhancements must
use the [feature workflow process ](https://about.gitlab.com/handbook/engineering/ux/technical-writing/workflow/#for-a-product-change ) described in the GitLab Handbook.
2019-10-14 02:06:06 -04:00
2020-05-04 14:10:20 -04:00
## Who updates the docs?
2019-10-14 02:06:06 -04:00
2020-05-04 14:10:20 -04:00
*Anyone* can contribute! You can create a merge request for documentation when:
2019-10-14 02:06:06 -04:00
2020-05-04 14:10:20 -04:00
- 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.
2019-10-14 02:06:06 -04:00
2019-12-03 10:06:20 -05:00
## Documentation labels
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:
2020-03-16 11:09:27 -04:00
- An appropriate [type label ](../contributing/issue_workflow.md#type-labels ).
2019-12-03 10:06:20 -05:00
- The [stage label ](../contributing/issue_workflow.md#stage-labels ) and
[group label ](../contributing/issue_workflow.md#group-labels ). For example, `~devops::create` and
`~group::source code` .
- The `~documentation` [specialization label ](../contributing/issue_workflow.md#specialization-labels ).
The following are also added by members of the Technical Writing team:
2020-09-07 11:09:04 -04:00
- A documentation [scoped label ](../../user/project/labels.md#scoped-labels ) with the
2019-12-03 10:06:20 -05:00
`docs::` prefix. For example, `~docs::improvement` .
- The `~Technical Writing` [team label ](../contributing/issue_workflow.md#team-labels ).
2020-03-16 11:09:27 -04:00
Documentation changes that are not associated with the release of a new or updated feature
2021-10-27 08:09:41 -04:00
do not take the `~"type::feature"` label, but still need the `~documentation` label.
2020-03-16 11:09:27 -04:00
They may include:
2019-10-14 02:06:06 -04:00
- Documentation created or updated to improve accuracy, completeness, ease of use, or any reason
2020-05-04 14:10:20 -04:00
other than a [feature change ](https://about.gitlab.com/handbook/engineering/ux/technical-writing/workflow/#for-a-product-change ).
2019-10-14 02:06:06 -04:00
- Addressing gaps in existing documentation, or making improvements to existing documentation.
- Work on special projects related to the documentation.
2020-05-04 14:10:20 -04:00
## How to update the docs
2019-10-14 02:06:06 -04:00
To update GitLab documentation:
1. Either:
- Click the **Edit this Page** link at the bottom of any page on < https: // docs . gitlab . com > .
- Navigate to one of the repositories and documentation paths listed on the
[GitLab Documentation guidelines ](index.md ) page.
1. Follow the described standards and processes listed on the page, including:
- The [Structure and template ](structure.md ) page.
2020-11-12 16:09:19 -05:00
- The [Style Guide ](styleguide/index.md ).
2020-06-04 17:08:11 -04:00
- The [Markdown Guide ](https://about.gitlab.com/handbook/markdown-guide/ ).
2020-12-10 13:10:16 -05:00
1. Follow the [Merge Request Guidelines ](../contributing/merge_request_workflow.md#merge-request-guidelines ).
2019-10-14 02:06:06 -04:00
2020-12-07 22:09:37 -05:00
NOTE:
2021-07-08 14:09:32 -04:00
Work in a fork if you do not have the Developer role in the GitLab project.
2019-10-14 02:06:06 -04:00
2021-02-08 16:09:25 -05:00
### Ask for help
Ask for help from the Technical Writing team if you:
2019-10-14 02:06:06 -04:00
- Need help to choose the correct place for documentation.
- Want to discuss a documentation idea or outline.
- Want to request any other help.
2021-02-08 16:09:25 -05:00
To identify someone who can help you:
2019-12-03 10:06:20 -05:00
2020-04-08 02:09:54 -04:00
1. Locate the Technical Writer for the relevant
2020-03-25 11:07:47 -04:00
[DevOps stage group ](https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments ).
2019-12-03 10:06:20 -05:00
1. Either:
2019-12-19 10:07:55 -05:00
- If urgent help is required, directly assign the Technical Writer in the issue or in the merge request.
2019-12-03 10:06:20 -05:00
- If non-urgent help is required, ping the Technical Writer in the issue or merge request.
2020-12-10 13:10:16 -05:00
If you are a member of the GitLab Slack workspace, you can request help in `#docs` .
2019-12-03 10:06:20 -05:00
2019-10-14 02:06:06 -04:00
### Reviewing and merging
2021-05-31 14:09:56 -04:00
Anyone with the [Maintainer role ](../../user/permissions.md ) to the relevant GitLab project can
merge documentation changes. Maintainers must make a good-faith effort to ensure that the content:
2019-10-14 02:06:06 -04:00
- Is clear and sufficiently easy for the intended audience to navigate and understand.
2020-11-12 16:09:19 -05:00
- Meets the [Documentation Guidelines ](index.md ) and [Style Guide ](styleguide/index.md ).
2019-10-14 02:06:06 -04:00
If the author or reviewer has any questions, they can mention the writer who is assigned to the relevant
2020-03-25 11:07:47 -04:00
[DevOps stage group ](https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments ).
2019-10-14 02:06:06 -04:00
The process involves the following:
- Primary Reviewer. Review by a [code reviewer ](https://about.gitlab.com/handbook/engineering/projects/ )
or other appropriate colleague to confirm accuracy, clarity, and completeness. This can be skipped
for minor fixes without substantive content changes.
2021-09-29 11:11:47 -04:00
- Technical Writer (Optional). If not completed for a merge request before merging, must be scheduled
2019-12-03 10:06:20 -05:00
post-merge. Schedule post-merge reviews only if an urgent merge is required. To request a:
2019-10-14 02:06:06 -04:00
- Pre-merge review, assign the Technical Writer listed for the applicable
2020-03-25 11:07:47 -04:00
[DevOps stage group ](https://about.gitlab.com/handbook/engineering/ux/technical-writing/#assignments ).
2019-12-03 10:06:20 -05:00
- Post-merge review, see [Post-merge reviews ](#post-merge-reviews ).
2019-10-14 02:06:06 -04:00
- 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
2021-09-29 11:11:47 -04:00
[create the required issue ](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Doc%20Review ), assign it to the Technical Writer of the given stage group,
2019-10-14 02:06:06 -04:00
and link it from the merge request.
The process is reflected in the **Documentation**
2021-06-08 14:10:23 -04:00
[merge request template ](https://gitlab.com/gitlab-org/gitlab/-/blob/master/.gitlab/merge_request_templates/Documentation.md ).
2019-10-14 02:06:06 -04:00
2020-05-04 14:10:20 -04:00
## Other ways to help
2019-10-14 02:06:06 -04:00
If you have ideas for further documentation resources please
2020-05-21 02:08:25 -04:00
[create an issue ](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Documentation )
2019-10-14 02:06:06 -04:00
using the Documentation template.
2019-12-03 10:06:20 -05:00
## Post-merge reviews
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,
2020-05-21 02:08:25 -04:00
create an issue using the [Doc Review description template ](https://gitlab.com/gitlab-org/gitlab/-/issues/new?issuable_template=Doc%20Review )
2019-12-03 10:06:20 -05:00
and link to it from the merged merge request that introduced the documentation change.
2021-09-29 11:11:47 -04:00
Circumstances, where a regular pre-merge Technical Writer review might be skipped, include:
2019-12-03 10:06:20 -05:00
2021-10-13 14:12:40 -04:00
- There is a short amount of time left before the milestone release. If less than three
2021-09-29 11:11:47 -04:00
days are remaining, seek a post-merge review and ping the writer via Slack to ensure the review is
2019-12-03 10:06:20 -05:00
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.
Remember:
- 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 ](../contributing/merge_request_workflow.md#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
2020-12-07 10:09:49 -05:00
can address the feedback provided by the Technical Writer in a follow-up MR.
2019-12-03 10:06:20 -05:00
- The Technical Writer can also help decide that documentation can be merged without Technical
writer review, with the review to occur soon after merge.
### Before merging
Ensure the following if skipping an initial Technical Writer review:
2021-09-29 11:11:47 -04:00
- [Product badges ](styleguide/index.md#product-tier-badges ) are applied.
- The GitLab [version ](styleguide/index.md#gitlab-versions ) that
introduced the feature is included.
- Changes to headings don't affect in-app hyperlinks.
2019-12-03 10:06:20 -05:00
- Specific [user permissions ](../../user/permissions.md ) are documented.
2021-09-29 11:11:47 -04:00
- New documents are linked from higher-level indexes, for discoverability.
- The style guide is followed:
2020-11-12 16:09:19 -05:00
- For [directories and files ](styleguide/index.md#work-with-directories-and-files ).
- For [images ](styleguide/index.md#images ).
2019-12-03 10:06:20 -05:00
Merge requests that change the location of documentation must always be reviewed by a Technical
2021-09-29 11:11:47 -04:00
Writer before merging.