Skip to main content

html-section

Sphinx extension to hide section headers with non-HTML builders.

Tests

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Activity

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

Other

License GitHub top language Requirements Status

Installation

html-section can be installed from PyPI.

To install with pip:

$ python -m pip install html-section

Then enable the extension by adding the following to your conf.py file:

extensions = [
                ...,  # Other extensions go here
                "html_section",
                ]

Usage

Contents
-----------

.. html-section::

The section label Contents will only be shown with the HTML builder. However, the section content will still be visible, and the heading will appear in the table of contents. Consider using Sphinx’s .. only:: html directive for that.

Contents
-----------

.. latex-section::

The section label Contents will only be shown with the LaTeX builder. However, the section content will still be visible, and the heading will appear in the table of contents. Consider using Sphinx’s .. only:: latex directive for that.

New in version 0.2.0.post1

Contents
-----------

.. phantom-section::

The section label Contents will be hidden with all builders, but the section will still exist in the structure of the document (i.e. a new section will be started, without a label). The section content will still be visible, and the heading will appear in the table of contents.

Metadata

Release files for html-section 0.2.0.post1

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

Source distribution (sdist)

Source distribution for html-section 0.2.0.post1
File Size Uploaded Provenance Actions
html_section-0.2.0.post1.tar.gz 5.8 kB Without provenance Details for html_section-0.2.0.post1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for html-section 0.2.0.post1
File Interpreter ABI Platform Actions
html_section-0.2.0.post1-py3-none-any.whl Python 3 none any Details for html_section-0.2.0.post1-py3-none-any.whl

Total release size: 25.0 kB

Release files / html_section-0.2.0.post1.tar.gz

Download URL html_section-0.2.0.post1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b4313820f07cbca501bf1900a53021d2187b1063c263e83c088dcd1915f7f8f5
BLAKE2b-256 checksum
How to use checksums
5417edde6f9c36237bc89942ead55b695976e8c1ff9cbad03e3de88c2f55d386
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Release files / html_section-0.2.0.post1-py3-none-any.whl

Download URL html_section-0.2.0.post1-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
323634efa390d35a658602be5a9fcedc5fd607c857da1cf34d01fc9e31c0dede
BLAKE2b-256 checksum
How to use checksums
6736052e73500581031fb510644ee08d313063ddd661048b0c373c3bbc2790d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for html-section 0.2.0.post1

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.

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