File: usage.rst

package info (click to toggle)
python-sphinx-contributors 0.2.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 608 kB
  • sloc: python: 239; makefile: 20
file content (36 lines) | stat: -rw-r--r-- 958 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Usage
=====

The ``contributors`` directive renders the contributors of a given GitHub repository in a Sphinx documentation page.

This example renders the top 5 contributors from the repository ``sphinx-doc/sphinx``, ordered in descending order, excluding ``dgarcia360`` and ``sphinx`` usernames from the list.

.. code-block:: rst

  .. contributors:: sphinx-doc/sphinx
      :contributions:
      :exclude: dgarcia360,sphinx
      :limit: 5
      :order: DESC

.. contributors:: sphinx-doc/sphinx
    :contributions:
    :exclude: dgarcia360,sphinx
    :limit: 5
    :order: DESC

This example renders the contributors avatars, whithout showing the number of contributions:

.. code-block:: rst

  .. contributors:: sphinx-doc/sphinx
      :avatars:
      :limit: 5
      :order: ASC

.. contributors:: sphinx-doc/sphinx
    :avatars:
    :limit: 5
    :order: ASC

For more information on how to style the list, see :doc:`Customization <customization>`.