Skip to content

Do not render Versions menu on Archives page

Sarah German requested to merge sarahg/1295-archives-links into main

What does this MR do and why?

Closes #1295 (closed)

The Archives list page is the one page on the site that is never version-specific -- docs.gitlab.com/archives is the single source of truth for the archives list, as it will show all archived versions currently available.

So, on this page, the Versions menu is not useful and may be actively confusing (currently it links to version-specific archives pages, which we do not want).

This MR:

  • hides the menu on the Archives page
  • renames the existing, unrelated isArchives function to isArchiveSite so it's more clear that the Archives page and site have separate logic

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/gitlab-docs/-/blob/main/doc/setup.md.
  2. Visit the Archives page: http://localhost:3000/archives/
  3. Verify the Versions menu does not appear
  4. Click around to other pages to verify the menu does render everywhere else

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

Loading