Skip to main content

Sphinx “taglist” extension.

TagList

Taglist is an extension to Sphinx documentation system.

Installation

Instalation through pip:

pip install sphinxcontrib-taglist

or through github:

git clone https://github.com/spinus/sphinxcontrib-taglist
cd sphinxcontrib-taglist
python setup.py install

Next, you have to add extension to ‘conf.py’ in your sphinx project.

extensions = [
          ...,
          'sphinxcontrib.taglist',
          ...]

Configuration

When using tags with this extension you may want give each tag other color. You can do that in ‘conf.py’ by adding:

taglist_tags = {
    'tag1': {'background-color': 'green'}
}

Directives

tag:

tag directive add a ‘piece’ of information, and you can tag it.

You can use it like:

.. tag:: Some tagged information
    :tag: tag1 tag2 tag3

or:

.. tag:: [tag1 tag2 tag3] Some tagged information
taglist:

taglist is a directive which catch tags and do a list.

Firstly it prints ‘Tags: …’ with information which tags it displays, and than it shows the list.

You can use it like:

.. taglist::
    :tags: tag1 tag3

How it works?

The codebase is derived from sphinxcontrib-requirements so it works in similar way.

During document reading tag directives create tag_node`s. `taglist create taglist nodes.

During resolving taglist nodes are changed to a piece of text Tags: with tags items which will be displayed on that list. Next it prints all tagged items.

CSS

taglist.css:

It contains base class for tag - taglist_tag

Additionally, it creates the file taglist_tags.css during processing (with css for each tag you defined in conf.py; taglist_tags maps all tag keys to css keys) and write it to build directory to static files.

Questions and suggestions

If you have some suggstions, patches, problems - please write an email.

Metadata

Release files for sphinxcontrib-taglist 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinxcontrib-taglist 0.2
File Size Uploaded Provenance Actions
sphinxcontrib-taglist-0.2.tar.gz 5.4 kB Without provenance Details for sphinxcontrib-taglist-0.2.tar.gz

Release files / sphinxcontrib-taglist-0.2.tar.gz

Download URL sphinxcontrib-taglist-0.2.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fbc8860e9e25855a4d963523cb9d998830526827aee28ba51fdae9618a41ecf2
BLAKE2b-256 checksum
How to use checksums
c8f0231939b8261ce4fa065962edd1535773a3ca4355ef0e60dd9b886f635ac9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sphinxcontrib-taglist 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page