- Backport documentation changes to current stable release
- Backport documentation changes to older releases
- View older documentation versions
Backport documentation changes
There are two types of backports:
- Current stable release: Any maintainer can backport changes, usually bug fixes but also important documentation changes, into the current stable release.
- Older stable releases: To guarantee the maintenance policy is respected, merging to older stable releases is restricted to release managers.
Backport documentation changes to current stable release
To backport documentation changes to the current stable release, follow the standard process to contribute to documentation.
Backport documentation changes to older releases
To backport documentation changes in documentation releases older than the current stable branch:
- Create an issue for the backport.
- Create the merge request (MR) to backport the change.
- Deploy the backport change.
Create an issue
Prerequisites:
- The person requesting the backport does this step. You must have at least the Developer role in the Technical Writing project.
-
Open an issue in the Technical Writing project using the backport changes template.
- In the issue, state why the backport is needed. Include:
- The background to this change.
- Which specific documentation versions are changing.
- How the documentation will change.
- Links to any supporting issues or MRs.
-
Ask for the approval of technical writing leadership by creating a comment in this issue with the following text:
@gitlab-org/tw-leadership could I get your approval for this documentation backport?
After the technical writing leadership approves the backport, you can create the merge request to backport the change.
Create the merge request to backport the change
Prerequisites:
- The person requesting the backport does this step. You must have at least the Developer role on the project that needs the backport.
To backport a change, merge your changes into the stable branch of the version where you want the changes to occur.
-
Open an MR with the backport. The MR should target the stable release branch, for example:
16-11-stable-ee
or17-0-stable-ee
. Mention the issue you opened before to the MR. -
Assign the MR to a technical writer for review.
-
After the technical writer approves the MR, assign the MR to a release manager for review and merge.
Mention this issue to the release manager, and provide them with all the context they need.
For the change to appear in:
-
docs.gitlab.com
, the release manager only has to merge the MR to the stable branch, and the technical writer needs to deploy the backport changes. -
gitlab.com/help
, the change needs to be part of a GitLab release. The release manager can include the change in the next release they create. This is an optional step.
Deploy the backport changes
Prerequisites:
- The technical writer assigned to the backport does this step. You must have at least the Maintainer role in the Technical Writing project.
After the changes are merged to the appropriate stable branch, you must update the Docker image that holds that version’s documentation.
The Docker image determines the contents that are displayed when you select the version dropdown list in the upper-right corner of the documentation.
Run a new pipeline
in the gitlab-docs
repository for every version of the documentation that needs
an update.
Choose the branch name that matches the stable version, for example 16.11
or 17.0
.
The next step differs depending on which versions the backport change was made to.
Backport change made to one of the last three stable branches
If the backport change was made to one of the last three stable branches, update the main docs site:
-
After the pipeline finishes and the Docker image is updated, go to the pipeline schedules and run the Build Docker images manually schedule.
-
A dialog with a link to the pipelines page appears. Select that link.
-
Open the Build Docker images pipeline you just started, find the image:docs-latest job, and start it manually.
You might have to wait for the test:image:docs-latest job in the test stage to finish first.
-
When the image:docs-latest job is finished, run a new pipeline that targets the main branch.
-
After the pipeline finishes, go to
https://docs.gitlab.com
and verify that the changes are available for the correct version.
Backport change made to a version other than the last three stable branches
If the backport change was made to a version other than the last three stable branches, update the docs archives site:
-
Run a new pipeline in the
gitlab-docs-archives
repository. -
After the pipeline finishes, go to
https://archives.docs.gitlab.com
and verify that the changes are available for the correct version.
View older documentation versions
Previous versions of the documentation are available on docs.gitlab.com
.
To view a previous version, in the upper-right corner, select the version
number from the dropdown list.
To view versions that are not available on docs.gitlab.com
:
- View the documentation archives.
- Go to the GitLab repository and select the version-specific branch. For example, the 13.2 branch has the documentation for GitLab 13.2.