Skip to main content

No project description provided

Project description

sphinx-all-contributors

All Contributors Documentation Status Ruff code style:prettier

sphinx-all-contributors is a Sphinx extension that allows you to easily display a list of contributors from a .all-contributorsrc file in your Sphinx documentation. The list is generated in a simple, readable format like:

- Contributor Name 1 for ideas, docs
- Contributor Name 2 for code

Features

  • Automatically reads the list of contributors from a .all-contributorsrc file.
  • Customizable relative path to the .all-contributorsrc file.
  • Outputs a list of contributors in a clean, human-readable format.

Installation

pypi

pip install sphinx-all-contributors

Usage

Add sphinx-all-contributors to the extensions list in your conf.py:

# conf.py
extensions = [
    "sphinx_all_contributors",
    # other extensions
]

Create a .all-contributorsrc file in your documentation source directory (or another location). You can create this file manually following the all-contributors format, or you can use the all-contributors bot to automate this process and ensure that your contributor data is accurate and up-to-date. An example .all-contributorsrc file looks like this:

{
  "contributors": [
    {
      "name": "Contributor Name 1",
      "contributions": ["ideas", "docs"]
    },
    {
      "name": "Contributor Name 2",
      "contributions": ["code"]
    }
  ]
}

In your .rst file, use the all-contributors directive to display the list of contributors. You can specify the relative path to the .all-contributorsrc file or omit it to use the default path (.all-contributorsrc in the source directory).

Example 1: Using the default .all-contributorsrc path:

.. all-contributors::

Example 2: Specifying a relative path to the .all-contributorsrc file:

.. all-contributors:: config/.all-contributorsrc

Build your documentation:

make html

The generated HTML (or other formats) will contain a list of contributors in the format:

- Contributor Name 1 for ideas, docs
- Contributor Name 2 for code

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-all-contributors-0.2.0.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

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

sphinx_all_contributors-0.2.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinx-all-contributors-0.2.0.tar.gz.

File metadata

  • Download URL: sphinx-all-contributors-0.2.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sphinx-all-contributors-0.2.0.tar.gz
Algorithm Hash digest
SHA256 382c0c4b5bd5432db6868c1a258ed245f9da2d26ce79da981c788731189d754a
MD5 98e960104d1e1605b08d1d99ba9b6397
BLAKE2b-256 9e7fd0025c2d8d2ccf2985d94bbc3c758c8203939e121beea0fd045f60f9a512

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx-all-contributors-0.2.0.tar.gz:

Publisher: publish-to-pypi.yml on tkoyama010/sphinx-all-contributors

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

File metadata

File hashes

Hashes for sphinx_all_contributors-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e228d0e669ee5b193c91becabd674c6831e5994aab3666870ccae636fcb4edcf
MD5 d13d4ff1f7cbba2dc4eca9e3ec1de201
BLAKE2b-256 c0c696be84b68dea9686a2d898830a315e2a9984b8dfe1363feee96e23df4bc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_all_contributors-0.2.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on tkoyama010/sphinx-all-contributors

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