-
Part of my repo_url: https://gitlab.example.com/group/project
repo_name: GitLab
# https://www.mkdocs.org/user-guide/configuration/#edit_uri
edit_uri: edit/main/docs/
# doesn't hurt to try...
view_uri: blob/main/docs/
theme:
features:
- content.action.edit
- content.action.view Out of the box, the edit button works great and takes me straight to the editor; however, the view button takes me to How might I go about tweaking it to instead go to |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Hello @ryran, from the looks of it, it also has a bug 🤔 as it would convert every edit or blob in the URL to raw even the file name, or perhaps I'm mistaken.
Anyways, you can use customization to replace the template and use an edited partial without the Another option would be to change the links after the page was loaded with JavaScript: You can see the code here and it's executed after the "DOMContentLoaded" event here. We're not using https://squidfunk.github.io/mkdocs-material/customization/#additional-javascript |
Beta Was this translation helpful? Give feedback.
Yeah I totally get that, but we're building our wiki via an automated pipeline and I won't always be around, so it's too much of a risk.
That said, I was able to get it working using your example! For posterity: