A Sphinx extension for adding contributor listings to documentation pages.
Project description
sphinx-contributor-listing
sphinx-contributor-listing adds contributor information to Sphinx documentation pages by extracting Git commit history and displaying contributor names with links to their latest commits.
Basic usage
After installing and configuring the extension, contributor information becomes available in your
Sphinx templates through the get_contributors_for_file function. This function can be used in
custom templates to display contributor information for specific pages.
The extension automatically:
- Extracts commit history from the Git repository
- Identifies all contributors (including co-authors) for each file
- Provides links to the contributors' latest commits
- Supports filtering by date range
Project setup
sphinx-contributor-listing can be installed with:
pip install sphinx-contributor-listing
After adding sphinx-contributor-listing to your Python project, update your Sphinx's conf.py file to include sphinx-contributor-listing as one of its extensions:
extensions = [
"sphinx_contributor_listing"
]
# Configuration options
display_contributors = True # Enable contributor display
github_folder = "/docs/" # Path to documentation folder in repository
github_url = "https://github.com/your-org/your-repo" # Base URL for commit links
# Optional: Filter commits by date
display_contributors_since = "2024-01-01" # Only show contributors since this date
Community and support
You can report any issues or bugs on the project's GitHub repository.
sphinx-contributor-listing is covered by the Ubuntu Code of Conduct.
License and copyright
sphinx-contributor-listing is released under the GPL-3.0 license.
© 2025 Canonical Ltd.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sphinx_contributor_listing-0.1.0.tar.gz.
File metadata
- Download URL: sphinx_contributor_listing-0.1.0.tar.gz
- Upload date:
- Size: 106.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d0c970c95f451c76279099b09a790220bd0d3d09966f405a070d187ad93aba3
|
|
| MD5 |
446bd33c025b6061b4700a7371e30ea4
|
|
| BLAKE2b-256 |
fe0128cb48f0a7bb8cbc279658569c463e5fbdf58767350efe043ef1857d0458
|
Provenance
The following attestation bundles were made for sphinx_contributor_listing-0.1.0.tar.gz:
Publisher:
release-publish.yaml on canonical/sphinx-contributor-listing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_contributor_listing-0.1.0.tar.gz -
Subject digest:
3d0c970c95f451c76279099b09a790220bd0d3d09966f405a070d187ad93aba3 - Sigstore transparency entry: 602235738
- Sigstore integration time:
-
Permalink:
canonical/sphinx-contributor-listing@cb55efa7c66a799bd74396542dd9b057f78e0ccd -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@cb55efa7c66a799bd74396542dd9b057f78e0ccd -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_contributor_listing-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_contributor_listing-0.1.0-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8f44d6f26cd27e138fec281a6cee111ffb840d792c540128e0648f5f64a960d6
|
|
| MD5 |
ede764d5988c4b96bf1f0f467f72ffc3
|
|
| BLAKE2b-256 |
74b7b0ef890ac26ed66e3d31b83852689883084087613f76eca48701891ae45e
|
Provenance
The following attestation bundles were made for sphinx_contributor_listing-0.1.0-py3-none-any.whl:
Publisher:
release-publish.yaml on canonical/sphinx-contributor-listing
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_contributor_listing-0.1.0-py3-none-any.whl -
Subject digest:
8f44d6f26cd27e138fec281a6cee111ffb840d792c540128e0648f5f64a960d6 - Sigstore transparency entry: 602235739
- Sigstore integration time:
-
Permalink:
canonical/sphinx-contributor-listing@cb55efa7c66a799bd74396542dd9b057f78e0ccd -
Branch / Tag:
refs/tags/0.1.0 - Owner: https://github.com/canonical
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
self-hosted -
Publication workflow:
release-publish.yaml@cb55efa7c66a799bd74396542dd9b057f78e0ccd -
Trigger Event:
push
-
Statement type: