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, 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.3.0
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file html_section-0.3.0.tar.gz.
File metadata
- Download URL: html_section-0.3.0.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42ca347a114119fbdc40b692757910579fb805e8f6153c4989c3bd1d9a119423
|
|
| MD5 |
c9da63242b6f5b4a2f8fde8f972f2af7
|
|
| BLAKE2b-256 |
1aa3279ed0f3917a0137a535004e389a2bbcd87943975e846f0fc5b422127430
|
File details
Details for the file html_section-0.3.0-py3-none-any.whl.
File metadata
- Download URL: html_section-0.3.0-py3-none-any.whl
- Upload date:
- Size: 19.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f35bf301c1a7804c43557b6a2b244c7b7c42d047921297c7668795ab218c8e74
|
|
| MD5 |
d6244535d4545f31b4404a0aacac6524
|
|
| BLAKE2b-256 |
6cc3076fd99f32ea9ceeaa38de81824a4e9c758a26cc1dd60f146f972998f59b
|