Skip to content

Adjust regexes for Version history

Sarah German requested to merge history-migration-bugfix into main

What does this MR do and why?

Adjusts regexes for Version history.

Turns out, only the first item has to have one of the special keywords to render as History.

This will fix the history block here: https://gitlab-org.gitlab.io/technical-writing-group/gitlab-docs-hugo/user/project/repository/code_suggestions/#disable-code-suggestions

Screenshots, screen recordings, or links to review app

before after
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/technical-writing-group/gitlab-docs-hugo/-/blob/main/doc/setup.md.
  2. Visit a page where a version history item doesn't include a keyword, but is still in the history block on the Nanoc site, like this: http://localhost:1313/user/project/repository/code_suggestions/. All history lines should be inside the history wrapper.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports