From 479b3581104ebf1936c1af308512f8c6863bc9b9 Mon Sep 17 00:00:00 2001 From: shenxianpeng Date: Sat, 25 Jul 2026 18:50:11 +0300 Subject: [PATCH] feat: add Edit this page link to docs - Enable content.action.edit theme feature - Add edit_uri_template pointing to GitHub editing URL This adds an 'Edit this page' link on every doc page, directing readers to suggest edits on GitHub. --- mkdocs.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mkdocs.yml b/mkdocs.yml index 0843bf2..8d96a63 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -24,6 +24,7 @@ theme: - navigation.top - navigation.sections - navigation.footer + - content.action.edit - content.code.annotate - content.code.copy - content.tabs.link @@ -88,6 +89,8 @@ plugins: extra_css: - stylesheets/extra.css +edit_uri_template: https://github.com/cpp-linter/cpp-linter.github.io/edit/main/docs/{path} + extra: social: - icon: fontawesome/brands/github