Skip to main content

Mkdocs plugin to display git authors of a page

Project description

Actions Status PyPI - Python Version PyPI PyPI - Downloads codecov GitHub contributors PyPI - License

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:

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 the search plugin. MkDocs enables it by default if there is no plugins 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
  • github actions: set fetch_depth to 0 (docs)
  • gitlab runners: set GIT_DEPTH to 1000 (docs)
  • bitbucket pipelines: set clone: depth: full (docs)

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mkdocs-git-authors-plugin-0.6.4.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mkdocs-git-authors-plugin-0.6.4.tar.gz.

File metadata

  • Download URL: mkdocs-git-authors-plugin-0.6.4.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mkdocs-git-authors-plugin-0.6.4.tar.gz
Algorithm Hash digest
SHA256 0d5831cbc30a9b158bd8d4029c1d40dc89e2f548b3d5f6bd0d0271686904a37a
MD5 0e1e51e46d59da03ced10af347f7338b
BLAKE2b-256 d2fb501875e57562640bbac6604f2d98ff2d38b8337ab154b08fee9b833cc138

See more details on using hashes here.

Provenance

File details

Details for the file mkdocs_git_authors_plugin-0.6.4-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_git_authors_plugin-0.6.4-py3-none-any.whl
  • Upload date:
  • Size: 18.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.2

File hashes

Hashes for mkdocs_git_authors_plugin-0.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b0914e8fa54c8957bfcc34727baf9c83d6943b06bc92c83b03ce360a35dff9a6
MD5 bc4e9dc8f47856400cc2bf481dfdf3c7
BLAKE2b-256 9a7af258228d50b8b3aaa1caea939e85300d87b42761c532500d34dcda405f35

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page