File: customization.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 (23 lines) | stat: -rw-r--r-- 608 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
Customization
-------------

The directive ``contributors`` generates an ``<ul>`` node with class ``sphinx-contributors``.
This makes the list is highly customizable through CSS.

.. tip:: See how to `add custom CSS to Sphinx Documentation <https://docs.readthedocs.io/en/stable/guides/adding-custom-css.html>`_.

For example, the following CSS snippet makes the images round:

.. code-block:: css

  .sphinx-contributors img {
      border-radius: 50%;
  }

.. rst-class:: custom-contributors

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