Skip to content

Implement edit links

Sarah German requested to merge 22-edit-links into main

What does this MR do and why?

Adds "view page source" and "edit in webIDE" links to each page.

For reference, here's the Nanoc version: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/lib/helpers/edit_on_gitlab.rb.

Closes #22 (closed)

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. Check out this branch
  2. Run the site: make view
  3. Verify both edit links work for a few pages from each product. Examples:

GitLab

Charts

Runner

Omnibus

Operator

Note: Links to _index.md files will not work yet, as we have yet to rename the actual source files (#55 (closed)). Links will point to _index.md, which will eventually be correct.

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