Sphinx SCM interface
Project description
This package provides sphinxcontrib.scm, a simple SCM interface for Sphinx-based documentation.
Installation
pip install sphinxcontrib-scm
Configuration
Add 'sphinxcontrib.scm' to the extensions list in conf.py.
extensions = [ 'sphinxcontrib.scm' ]
Configure in conf.py
scm_contribs_email = ["true"|"false"] # Show email. Default: "true" scm_contribs_limit_contributors" = [None|int] # Limit number of contributors. Use None # to deactivate. Default: None scm_contribs_min_commits = int # Filter by number of commits. Default: 0 scm_contribs_sort = ["name"|"num"] # Sort by name or number of commits. # Default: "name" scm_contribs_type = ["author"|"committer"] # Show info of author or committer. # Default: "author"
Usage
Directive
.. scm-sectionauthor::
:email: [true|false]
:limit_contributors: [<int>]
:min_commits: [<int>]
:sort: [name|num]
:type: [author|committer]
Populates sectionauthor directive with a list of SCM contributors. All options are optional and override the config settings in conf.py.
Role
:scm-contribs:`.`
Can be used inline (eg as content for the sectionauthor directive). Currently, email addresses are not converted into mailto links.
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
sphinxcontrib_scm-0.1.4.tar.gz
(21.4 kB
view hashes)
Built Distribution
Close
Hashes for sphinxcontrib_scm-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e48071489812f3e0c1a73809a35ba827e866cc1c648fe2fd24a9b4756f95f294 |
|
MD5 | 637cb632eb2b6447a620fc7aaffb4930 |
|
BLAKE2b-256 | 52b078a4f9255f4d59555ba3f2cc1303b4b072df8da4c5d86ef3523e9c1e5ad2 |