No project description provided
Project description
sphinx-all-contributors
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 - ideas, docs
- Contributor Name 2 - 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
- Clone or download this repository.
- Install the package by running:
pip install .
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 - ideas, docs
- Contributor Name 2 - code
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file sphinx-all-contributors-0.1.2.tar.gz
.
File metadata
- Download URL: sphinx-all-contributors-0.1.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84a13235b0d17682b3e7d12496161aaf80f6dee7ea58a01fabba262d8d589ec3 |
|
MD5 | f4f1d115935e7d76a130652a07c838be |
|
BLAKE2b-256 | 1e19339daf6cf4d588ac72b4b39879981870fed477ea6b15626f2e7eb5704c25 |
File details
Details for the file sphinx_all_contributors-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sphinx_all_contributors-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0302e1da55d232f8f6d96e07738d966fa643a3c30bd854b5419a4ce019898eed |
|
MD5 | 5378843c0320c8da8387eab6affcdb02 |
|
BLAKE2b-256 | 325e2bd9110c6921efc07116ba1aa33cba2ae1868c17ad95f1e02ad24a66006c |