Technical Writing recurring tasks for: 2020-12
Each month, the Technical Writer assigned to recurring tasks
will ensure the following tasks are completed to help keep the gitlab
repository in good condition:
-
Improve this template, if needed. -
Check the Kramdown build logs for warnings. On the docs pipeline page, select any recent pipeline. In its Jobs tab, select compile_prod
orcompile_dev
. In the provided job log, search forkramdown warning
messages, which are usually caused by problematic HTML or square brackets. If the warning is reported for line 1 in a doc, it's likely the problem is in a Markdown table, which could be anywhere in the doc. -
Check for uncompressed images. Run the following commands in gitlab-org/gitlab
to check if any uncompressed images exist:bundle exec rake pngquant:lint
If there are any results, create a new branch and compress the images with:
bundle exec rake pngquant:compress
Three tasks have automated tests that you can run from a scheduled pipeline in the
gitlab-docs
project. To run the pipeline:
- Go to the pipeline schedules page.
- Click the Play button for the
Run TW chores jobs
scheduled pipeline. - Go to the pipelines page
and find the pipeline you just triggered at the top. The pipeline has one stage,
with three manual jobs. Click Play on the jobs you wish to run:
-
Check for unused images. Run the test_unused_images
job, which checks all 4 projects to see if any images are no longer in use. It takes 30+ minutes to run, so you may want to start this job first, then work on the other tasks while waiting. -
Check for broken external links. Run the test_external_links
job, and fix as many of the links as time permits. Be aware that:- You have to evaluate suggestions for new links; the forwarded link may also be broken or may redirect again to another page.
- The forwarded link may include a trailing forward slash. While not required for most browsers, the trailing slash can help prevent errors.
- The forwarded link may not include section title links (anchors), such as
#section-title
. You may need to add the#section-title
manually. - Links may disappear, such as external software reaching end-of-life.
- Updated links may not provide the desired information; you may need to create an issue to resolve these links.
-
Check for trailing whitespace. Run the test_EOL_whitespace
job to find all pages with lines that have trailing whitespace that isn't needed.
-
Some of the tests may not return any results, and no further work is required for that task.
If you have problems (such as broken links without obvious replacements), ask in the appropriate Slack channel, or open an issue/MR. Note that these tasks aren't intended to solve 100% of related technical debt.