Skip to main content

Sphinx SCM interface

Project description

[Latest PyPI version] [Supported Python versions] [pre-commit: enabled] [Code style: black] [Code style: prettier]

This package provides sphinxcontrib.scm, a simple SCM interface for Sphinx-based documentation.

Installation

  1. pip install sphinxcontrib-scm

Configuration

  1. Add 'sphinxcontrib.scm' to the extensions list in conf.py.

    extensions = [ 'sphinxcontrib.scm' ]
  2. 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. Currenlty, 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.0.tar.gz (19.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinxcontrib_scm-0.1.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file sphinxcontrib-scm-0.1.0.tar.gz.

File metadata

  • Download URL: sphinxcontrib-scm-0.1.0.tar.gz
  • Upload date:
  • Size: 19.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sphinxcontrib-scm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bc01f449cc60fcfa0d386764448a3671ca9cb32ee799d0c46b541a1cc25d042a
MD5 fe86d74ae11957fe16511913c1b69cb3
BLAKE2b-256 c72bfb86c3b19ffd8612f86c3a7bcca67ed903ba33548a5634f704e3f9b0de78

See more details on using hashes here.

File details

Details for the file sphinxcontrib_scm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: sphinxcontrib_scm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for sphinxcontrib_scm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9806f5aab3ec40359041d88cf01ad2f215966888cd0c471da3b17513f9e5e42d
MD5 851b54e58c920299c0f123c678ab7a51
BLAKE2b-256 f569064feccdceaa5821771549ffc30e058717ab520c0caa23fe9e8c0b562914

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