Skip to main content

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


Download files

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

Source Distribution

sphinx_contributor_listing-0.0.1.tar.gz (74.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_contributor_listing-0.0.1-py3-none-any.whl (19.2 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_contributor_listing-0.0.1.tar.gz.

File metadata

File hashes

Hashes for sphinx_contributor_listing-0.0.1.tar.gz
Algorithm Hash digest
SHA256 911d7c0e912d4227c8cc6f8685810fb3b0ba0596740d37e17e2d400023630b63
MD5 2971feba98f6b0e56acd7c50069cea43
BLAKE2b-256 2162bb4ce56d8fc5407fc7832929e76125b8b93f6cd496521112f645d9e0c11b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_contributor_listing-0.0.1.tar.gz:

Publisher: release-publish.yaml on canonical/sphinx-contributor-listing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_contributor_listing-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_contributor_listing-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1ba116d128639a59658d4bfb88676dd206486f56e084bb1d3519fe76ef4d0d34
MD5 83f23f1f56bc53f0a3858702722fef2d
BLAKE2b-256 95cbf5d79b5662e0eb5f48f010217e33d5e645910372427722a557526e4db787

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_contributor_listing-0.0.1-py3-none-any.whl:

Publisher: release-publish.yaml on canonical/sphinx-contributor-listing

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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