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
Hashes for html_section-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7e2b6e271c9424fa24ccde497bfa467fcea0bcbecb61f2e3fcda20ebd2abef81 |
|
MD5 | 784d2899a7a7035f5391e005bdfea1e9 |
|
BLAKE2b-256 | d1af6ab516e474837969add55e125f89faeecf28bb64e74e84ddb6907b10b289 |