Skip to content

Fix edit links

Sarah German requested to merge 81-edit-links-fix into main

What does this MR do and why?

Brings back missing "Edit this page" links. The page-source-project partial was not getting the full site context that it needed to find $.Site.Data.products.

We introduced a regression in the refactor in !91 (merged).

Closes #81

Screenshots

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. View a standard content page (anything except homepage, /shortcodes, /search, and /archives). Links to edit the page should appear in the "Help and Feedback" panel, as well as in the footer.

Note that links to _index.md will not resolve yet, as we have not yet renamed the source files (#82).

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.

Edited by Sarah German

Merge request reports