View source and Edit this page using 'master' instead of 'main' #7810
Answered
by
niclasheinz
golfecholima
asked this question in
Q&A
-
Seems like the default setting is to For example, the generated URL is https://github.com/user/repo/raw/master/docs/index.md ... but should be https://github.com/user/repo/raw/main/docs/index.md because that's my primary branch. Where can I change that? |
Beta Was this translation helpful? Give feedback.
Answered by
niclasheinz
Dec 18, 2024
Replies: 1 comment 5 replies
-
Can you provide more information on your question? Do you mean publishing the documentation on GitHub Pages? Are you talking about the ‘Edit’ button? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the clarification.
You can simple add this to your
mkdocs.yml
configuration:then you get the right url points to branch
main
for both edit and view sourceLink to documentation: https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/?h=edit+uri#code-actions