Skip to main content

No project description provided

Project description

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

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.

Contributing

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

License

MIT

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.3.4.tar.gz (6.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_all_contributors-0.3.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_all_contributors-0.3.4.tar.gz.

File metadata

  • Download URL: sphinx_all_contributors-0.3.4.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_all_contributors-0.3.4.tar.gz
Algorithm Hash digest
SHA256 c21492a019a56cf72c7b62f3db8395c3199af20c962a8bf29a87c12ca60ae9f3
MD5 05a9af3af4cd0f436693a636f29bb095
BLAKE2b-256 25e244d05b9ff2f890ee06bab8256c4488658a79de997e6b4f0b6c3a6fd14d55

See more details on using hashes here.

File details

Details for the file sphinx_all_contributors-0.3.4-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_all_contributors-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 26d425b4d01a9d400036df5d9f83d16f065ed635cd24119f24bf660131e9e310
MD5 3679952246106d96aff335074be74e03
BLAKE2b-256 d0da35691414a78e9a01d3f7667a3e7f96e2ee726b72ac1afae619bc25a4b1ba

See more details on using hashes here.

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