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.1.0.tar.gz (106.7 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.1.0-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for sphinx_contributor_listing-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3d0c970c95f451c76279099b09a790220bd0d3d09966f405a070d187ad93aba3
MD5 446bd33c025b6061b4700a7371e30ea4
BLAKE2b-256 fe0128cb48f0a7bb8cbc279658569c463e5fbdf58767350efe043ef1857d0458

See more details on using hashes here.

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

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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_contributor_listing-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f44d6f26cd27e138fec281a6cee111ffb840d792c540128e0648f5f64a960d6
MD5 ede764d5988c4b96bf1f0f467f72ffc3
BLAKE2b-256 74b7b0ef890ac26ed66e3d31b83852689883084087613f76eca48701891ae45e

See more details on using hashes here.

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

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