Page Contributors #6921
-
I've tried searching far and wide, and I can't seem to get this working. On the demo site of any page: https://squidfunk.github.io/mkdocs-material/setup/adding-a-git-repository/ There is a list of authors linked from Github with their avatars. I cannot seem to get this to show at all. I've linked Github through all my settings, and other github plugins like simply showing the text name seem to work, but not the avatar one. I've also ensured my config is set up: - git-committers:
repository: username/repo
branch: main
token: Github_PAT_here Any help would be awesome; I've tried just about everything. I also tried manually installing https://github.com/ojacques/mkdocs-git-committers-plugin-2 and even v1, but when I use those, it messes up. I see the word "Contributors" down in the very bottom left of my screen, obviously not where it's supposed to be. And from what I've read, the material theme should work out of box with v2. To add, terminal is reporting that it's running
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
Hello @Aetherinox,
- git-committers:
repository: squidfunk/mkdocs-material
token: !ENV GH_TOKEN # Set in GitHub Actions
You could use the theme customization to override the template and print debug the Or you can access your
Maybe you have an older version of the theme? |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help, very much appreciate it. So, I did some debugging, and I found out what's going on. and I'm not sure how to resolve it. My docs are hosted in
And the path to my actual md files + stylesheet, etc would be:
In my mkdocs.yml config, I have it set up to my repo, and the branch. - git-committers:
repository: username/repo
branch: main
token: Github_PAT_here So to test, I moved the mkdoc files from my main branch, to a new I tried to append So I'm not sure if there's a way to give it that path, or if I should just migrate my docs to another branch. I just launched mkdocs with the new branch, and it threw out:
Which is the first time I've seen that, and I see my avatar on the pages now. This is my first time playing with mkdocs, but I'm wondering if it would be better to just use another branch. Only issue is checking out all the time to go back and forth. |
Beta Was this translation helpful? Give feedback.
Good job on the debug, the plugin has a
docs_path
option:https://github.com/ojacques/mkdocs-git-committers-plugin-2/blob/ab15c14b0aa03acf28ca649b128546fa05a371ce/mkdocs_git_committers_plugin_2/plugin.py#L22-L33
maybe that's the solution.
It's the base for the
git_path
:https://github.com/ojacques/mkdocs-git-committers-plugin-2/blob/ab15c14b0aa03acf28ca649b128546fa05a371ce/mkdocs_git_committers_plugin_2/plugin.py#L194