This package provides sphinxcontrib.scm
, a simple SCM interface for Sphinx-based
documentation.
pip install sphinxcontrib-scm
Add
'sphinxcontrib.scm'
to theextensions
list inconf.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"
.. 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
.
:scm-contribs:`.`
Can be used inline (eg as content for the sectionauthor
directive). Currently, email
addresses are not converted into mailto links.