Mkdocs plugin to display git authors of a page
Project description
mkdocs-git-authors-plugin
Lightweight MkDocs plugin to display git authors of a markdown page:
Authors: Jane Doe, John Doe
See the demo. The plugin only considers authors of the current lines in the page ('surviving code' using git blame
).
Other MkDocs plugins that use information from git:
- mkdocs-git-revision-date-localized-plugin for displaying the last revision date
- mkdocs-git-committers-plugin for displaying authors' github user profiles
Setup
Install the plugin using pip3:
pip3 install mkdocs-git-authors-plugin
Next, add the following lines to your mkdocs.yml
:
plugins:
- search
- git-authors
If you have no
plugins
entry in your config file yet, you'll likely also want to add thesearch
plugin. MkDocs enables it by default if there is noplugins
entry set.
You can then use the {{ git_page_authors }}
tag in your markdown document, or choose to customize your mkdocs theme (see usage page in the docs).
Note when using build environments
This plugin needs access to the last commit that touched a specific file to be able to retrieve the date. By default many build environments only retrieve the last commit, which means you might need to:
Change your CI settings
Documentation
See timvink.github.io/mkdocs-git-authors-plugin
Contributing
Very much open to contributions! Please read contributing guide before putting in any work.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for mkdocs_git_authors_plugin-0.9.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 77f97c321e08a8757beb866293eb257070b11cd5a080976bc6696b249cbade4f |
|
MD5 | a2285fe1a4df8db116170284e62f75ab |
|
BLAKE2b-256 | 80ef09ab7178d580e342cb3ba279c48eaf3abf55795a2ae6e5426fe2c725143c |
Hashes for mkdocs_git_authors_plugin-0.9.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f6cefc4dc832865d26f7f9f944c0a8c7dc852742d79320f3800e0d97814e2a84 |
|
MD5 | 0af9157c087578ff36525b98f0665e42 |
|
BLAKE2b-256 | 480857d0fea1cc30096fcc94ec9cd4ccdee625be89fd710626f78d90fc13738e |