Improving Documentation

Workflow for submitting GitLab documentation improvements from the Support team

Improving Documentation

As outlined in the Documentation section of the How to Respond to Tickets workflow, comprehensive documentation is a powerful tool for ticket deflection.

By taking a docs-first approach to answering, we can ensure that the documentation remains a highly useful single source of truth. By building up a corpus of documentation informed by real-world problems, we help GitLab customers find the answers or solutions they need before they come into the queues.

With that in mind, whenever possible, include a link to the applicable documentation as part of your response to a ticket. If the documentation does not exist yet, then write a documentation issue or draft merge request, and send the link in the response.

The information collected below should be helpful for when you contribute to the docs.

General Documentation Guidelines

Making Your Changes

Make your edits and commits on a new branch named according to the Documentation guidelines, which state that branch names must start with docs- (or one of the other options listed in the branch name scheme).

  • Commit the changes. Make sure the commit message follows our commit message guidelines. If you don’t follow the guidelines, the Danger Bot job may fail when it checks if the commits are aligned with our guidelines. If it fails, read the job trace and fix the issue with a new commit, or an interactive rebase. (Ask for help if you’re not sure how to do a rebase!)

Note: If you are unfamiliar with the basics of working in a Git or GitLab environment, please complete the Git and GitLab Basics training module before attempting to make documentation changes.

Style Guide and Linting

Documentation Merge Requests

  • Follow the docs MR guidelines as you create the MR
  • In the MR Description, be sure to include a link to any relevant ticket or issue
  • Add appropriate labels:
    • documentation (the template should be automatically adding this label, but check to make sure).
    • group scoped label (if in doubt, it should be listed at the top of the docs page)
    • customer (if related to a ticket)
    • Note: the bot will add the stage, section, Support Team Contributions, and docs-only labels if you don’t
  • Follow the Code Review Guidelines and set the relevant Technical Writer (TW) as a Reviewer.
    • The documentation template has instructions on how to find this, but basically refer to the metadata information at the top of the source version of the docs page.
    • Check the Technical Writing Assignments to find the appropriate tech writer for the page you edited.
    • If you’re using the Support dotfiles, you can use the find-technical-writer command to quickly see who is the tech writer for a specific group.
  • Make sure that the following options are checked before submitting the MR:
    • Delete source branch when merge request is accepted.
    • Squash commits when merge request is accepted. The “Apply suggestion” feature is used frequently in docs MRs, so this checkbox is essential to keeping a clean history in the default branch after merging.

Working with the Tech Writers on the Merge Request

  • Remember to provide timely answers to any questions the tech writing team may ask you about your contribution.
  • Read through the documentation process.
    • Note: Support is expected to verify the technical accuracy of a docs MR before assigning to a TW. When in doubt, get a technical review from an engineer first. Find an appropriate engineer using the metadata information from the edited page.
  • Read the post merge review guidelines.
    • In Support, you might use the post-merge review option if you have an urgent docs MR, such as when we need to publish a docs fix as soon as possible.
    • If it’s in the “Troubleshooting section” of any page, follow the guidelines except assign to a support manager who is online who will do a quick review and merge.
    • If it’s not, then depending on how quickly you need it, share it in the #docs Slack channel asking anyone there to review and merge ASAP. This does not require a post-merge review, as it involves a TW review.
  • Read about docs deploy. The key thing is to note how often docs are deployed.
  • Also remember to not take feedback personally - we all want the documentation to be accurate and easy to follow, so all feedback from the tech writers will be with this goal in mind!

Zendesk “Document this” workflow

For those situations in which making documentation is a more time-consuming exercise, we have set up a process to automatically create an issue in the GitLab issue tracker to track documentation tasks that needs to be completed:

  • Apply the macro General::Document This to the ticket. This macro will apply the create_doc_issue tag and prefill the template for you to fill out.
  • Fill out the template changing the title and the description. Example of the filled out template:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
CREATE DOCUMENTATION ISSUE
Title: Document how to use Y with an X
Description
There is a new cool feature Y that we released last month. It can be used with X to improve Z. We need to document how Y can be used with X.

## Test h2 header

We should remember to document:

1. requirements
1. how to enable
1. how to configure
1. how to troubleshoot
  • Submit as internal note. When issue is created doc_issue_created tag will be added to the ticket.

If you need to create multiple issues using this workflow, just apply the macro once again. The automation creates issues with label_name[]=documentation&label_name[]=customer and assigns them to the agent who submitted the internal note.

Note: Make sure to use the template so that your internal note is correctly parsed by the trigger.

This workflow is implemented using a zendesk trigger that parses the internal note and sends it to Zendesk’s HTTP target that creates a documentation issue.

Last modified February 26, 2024: Handbook: update links to docs linters (499badfb)