Replies: 1 comment
-
Hello @macpijan, The theme replaces the mkdocs-material/src/templates/partials/actions.html Lines 40 to 46 in c8bae9b I'm not sure what kind of feature request you want to propose, but you can modify it with customization: override the actions.html partial and change the logic to the one you want. Another option would be to replace the address with extra JavaScript: This discussion contains a lot of reference about working with the action buttons from JavaScript, it focuses on adding one, but replacing a href should be even simpler. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
You can configure the edit_uri via: https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/?h=action+view#code-actions
It seems that the same pattern is used for
action.view
, with the assumption thatraw
is used in place ofedit
.This works for GitHub, but for Gitea the links are as follows:
https://XXX/_edit/master/docs/doc.md
https://XXX/raw/branch/master/doc.md
Perhaps there is another way to configure, or it deserves a feature request?
Beta Was this translation helpful? Give feedback.
All reactions