An MkDocs plugin to create a list of contributors on the page. The git-committers plugin will seed the template context with a list of GitHub or GitLab committers and other useful GIT info such as last modified date
Low maintenance activity. Last release 22 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and recent releases.
pip install mkdocs-git-committers-plugin-2mkdocs-git-committers-plugin-2
MkDocs plugin for displaying a list of committers associated with a file in mkdocs. The plugin uses GitHub or GitLab API to fetch the list of contributors for each page.
🥳 NEW! Works with GitLab too!
For ease of use, this plugin is integrated in the material for mkdocs theme by Martin Donath. See Mkdocs material documentation.
Other MkDocs plugins that use information to fetch authors:
mkdocs-git-authors-pluginfor displaying user names a number of lines contributed (uses local Git information)mkdocs-git-committers-plugindisplay contributors for a page (uses local Git information, completed with REST GitHub API v3)
Setup
Install the plugin using pip:
pip install mkdocs-git-committers-plugin-2
Activate the plugin in mkdocs.yml:
For a repository hosted on GitHub:
plugins:
- git-committers:
repository: organization/repository
For a repository hosted on GitLab:
plugins:
- git-committers:
gitlab_repository: 12345678
token: !ENV ["CI_JOB_TOKEN"]
For a repository hosted on GitLab, you need to provide a token so that the
plugin can access the GitLab API. If the token is not set in mkdocs.yml it
will be read from the MKDOCS_GIT_COMMITTERS_APIKEY environment variable.
For a repository hosted on GitHub, you can provide a token to increase the rate limit and go beyond the default 60 requests per hour per IP address. The plugin will make one request per mkdocs document. The token does not need any scope: uncheck everything when creating the GitHub Token at github.com/settings/personal-access-tokens/new, unless you access private repositories.
For private GitHub repositories, you only need to allow read-only access to Contents and Metadata on the target repository. This could be done by setting access of .