Skip to content

Commit 479b358

Browse files
committed
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.
1 parent 1998629 commit 479b358

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎mkdocs.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ theme:
2424
- navigation.top
2525
- navigation.sections
2626
- navigation.footer
27+
- content.action.edit
2728
- content.code.annotate
2829
- content.code.copy
2930
- content.tabs.link
@@ -88,6 +89,8 @@ plugins:
8889
extra_css:
8990
- stylesheets/extra.css
9091

92+
edit_uri_template: https://github.com/cpp-linter/cpp-linter.github.io/edit/main/docs/{path}
93+
9194
extra:
9295
social:
9396
- icon: fontawesome/brands/github

0 commit comments

Comments
 (0)