| 1 |
========================================================================== |
| 2 |
:mod:`cloud_sptheme.ext.index_styling` - improves css styling for genindex |
| 3 |
========================================================================== |
| 4 |
|
| 5 |
.. module:: cloud_sptheme.ext.index_styling |
| 6 |
:synopsis: adds additional css styling to general index |
| 7 |
|
| 8 |
Overview |
| 9 |
======== |
| 10 |
This Sphinx extension intercepts & modifies the general index data |
| 11 |
before it is rendered to html, adding some additional css classes |
| 12 |
to help Sphinx themes (e.g. :doc:`/cloud_theme`) |
| 13 |
provide additional per-type styling for index entries. |
| 14 |
|
| 15 |
Internals |
| 16 |
========= |
| 17 |
This extension adds the following css classes to ``genindex.html``: |
| 18 |
|
| 19 |
* For all entries referencing an ``attribute``, ``method``, ``class``, |
| 20 |
``function``, or ``module``: |
| 21 |
|
| 22 |
- The text containing the type of the entry (e.g. ``attribute`` or ``method``) is wrapped in a |
| 23 |
:samp:`<span class="category {type}">...</span>` tag. |
| 24 |
|
| 25 |
- If the entry contains a location (e.g. ``myclass in module myapp``), |
| 26 |
the ``myapp`` portion is wrapped in a ``<span class="location">...</span>`` tag. |
| 27 |
|
| 28 |
* Entries which don't fit into one of the above categories are not modified. |