Skip to main content

sphinx-all-contributors

All Contributors Documentation Status Ruff code style:prettier standard-readme compliant Conventional Commits

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

Table of Contents

Install

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

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.
  • Optional emoji display for contribution types using the :emoji: flag.
  • Optional profile links for contributors using the :profile: flag.

Options

The all-contributors directive supports the following options:

:profile: flag

Makes contributor names clickable links to their profile URLs (if profile URLs are available in the .all-contributorsrc file).

Example:

.. all-contributors::
   :profile:

Output:

- [Contributor Name 1](profile-url) for ideas, docs
- [Contributor Name 2](profile-url) for code

:emoji: flag

Displays emoji icons before contribution types based on the all-contributors emoji key.

Example:

.. all-contributors::
   :emoji:

Output:

- Contributor Name 1 for 🤔 ideas, 📖 docs
- Contributor Name 2 for 💻 code

You can combine both options:

.. all-contributors::
   :profile:
   :emoji:

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

MIT

Metadata

Release files for sphinx-all-contributors 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-all-contributors 0.4.2
File Size Uploaded
sphinx_all_contributors-0.4.2.tar.gz 9.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-all-contributors 0.4.2
File Interpreter ABI Platform
sphinx_all_contributors-0.4.2-py3-none-any.whl Python 3 none any Details

Total release size: 15.4 kB

Release files / sphinx_all_contributors-0.4.2.tar.gz

Download URL sphinx_all_contributors-0.4.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
767dadee1bbc999c498c765f6ecda57a68fe12e51f09287872c2e4f45e50a9a0
BLAKE2b-256 checksum
How to use checksums
95b5420eacc17d50f7bb34e2a78ee160c2d55f091378556d603045f01f25e8bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / sphinx_all_contributors-0.4.2-py3-none-any.whl

Download URL sphinx_all_contributors-0.4.2-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01abfe2eb00ab7b5422eda0e0684ac7e74e107f3846f0a4dd26f7c3dc0ced7a7
BLAKE2b-256 checksum
How to use checksums
45c470d20edeff6a40068a20888ec2bd31688b10bfd58c6577ebea55010e440e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.4.3

2 release files

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page