Do not render Versions menu on Archives page
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 toisArchiveSite
so it's more clear that the Archives page and site have separate logic
Screenshots, screen recordings, or links to review app
Before | After |
---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
-
Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md. -
Visit the Archives page: http://localhost:3000/archives/ -
Verify the Versions menu does not appear -
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.
-
I have evaluated the MR acceptance checklist for this merge request.