sphinx-collapse
The sphinx-collapse extension enhances Sphinx documentation by introducing collapsible sections. This feature allows documentation authors to create toggles for hiding and revealing detailed content, making documents more manageable and navigable for readers.
Example:
Features
Hide content
Toggle the visibility of content with a Sphinx directive tailored for this purpose.
Minimal code
The library does not use JavaScript nor relies on third-party frameworks such as Bootstrap, Tailwind CSS, or Foundation.
Configurable
Customize the style of the collapsible directive using options or overriding the CSS.
Installation
Install sphinx-collapse using PIP.
pip install sphinx-collapseAdd the extension to your Sphinx project conf.py file.
extensions = ['sphinx_collapse']
Usage
Add the collapse directive in your reStructuredText content. Here’s a basic example:
.. collapse:: Click here
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Example output:
Check out the full documentation for more customizable options at https://sphinx-collapse.readthedocs.io/
Contributing
We encourage public contributions! Please review CONTRIBUTING for details on our code of conduct and development process.
License
Copyright (c) 2022 - present David Garcia (@dgarcia360).
Licensed under the MIT License.
Metadata
Release files for sphinx_collapse 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sphinx_collapse-0.1.4.tar.gz | 19.4 kB | Without provenance | Details for sphinx_collapse-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sphinx_collapse-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for sphinx_collapse-0.1.4-py3-none-any.whl |
Total release size: 24.2 kB
Release files / sphinx_collapse-0.1.4.tar.gz
| Download URL | sphinx_collapse-0.1.4.tar.gz |
|---|---|
| Size | 19.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ba860e50839c026cd1abcc164e1e7cb18bcc11c8214150e34a6550461be3229f
|
|
BLAKE2b-256 checksum How to use checksums |
14a1cb5bb03a5081bd1229b3296c2af347b4147017fdb62777d2aad855cd349f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Release files / sphinx_collapse-0.1.4-py3-none-any.whl
| Download URL | sphinx_collapse-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76e9fa531bafb4984d6ef5f3dbe311982837f5965b7a35eda013bbd9dd41445e
|
|
BLAKE2b-256 checksum How to use checksums |
9a18277f4663c97073606917becab629938237f1e03952f4e339f8b7d1f3096b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.32.5
|
Security for sphinx_collapse 0.1.4
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.