Sphinx extension to hide section headers with non-HTML builders.
Project description
Sphinx extension to hide section headers with non-HTML builders.
Tests |
|
---|---|
PyPI |
|
Activity |
|
QA |
|
Other |
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. Consider using Sphinx’s .. only:: html directive for that.
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file html_section-0.1.0.tar.gz
.
File metadata
- Download URL: html_section-0.1.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0482eb09d756e09f8b1525a4633a8ccfa8d5cacd5fec73982863c55b50a95e2d |
|
MD5 | abbb5f08edd26f500085a5076d208435 |
|
BLAKE2b-256 | 7678c423da724069cf7162bb9fcc0ad0fbcee3f0dbf45dacdfa604d58a1e045b |
File details
Details for the file html_section-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: html_section-0.1.0-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2b6e271c9424fa24ccde497bfa467fcea0bcbecb61f2e3fcda20ebd2abef81 |
|
MD5 | 784d2899a7a7035f5391e005bdfea1e9 |
|
BLAKE2b-256 | d1af6ab516e474837969add55e125f89faeecf28bb64e74e84ddb6907b10b289 |