Collapse extension for Sphinx.
Project description
sphinx-collapse is a Sphinx extension that lets you add collapsible content to your documentation.
Collapsibles are useful to hide large amounts of content:
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
You can then customize the style of the collapsible directive using options or overriding the CSS.
Installation
Install sphinx-collapse using PIP.
pip install sphinx-collapse
Add the extension to your Sphinx project conf.py file.
extensions = ['sphinx_collapse']
Usage
Using the directive:
.. 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.
Renders:
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.
Sponsors
This project is sponsored by Scylla, The Real-Time Big Data Database.
License
Copyright (c) 2022 - present David Garcia (@dgarcia360).
Licensed under the MIT License.
Project details
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 sphinx_collapse-0.1.2.tar.gz
.
File metadata
- Download URL: sphinx_collapse-0.1.2.tar.gz
- Upload date:
- Size: 18.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a186000bf3fdac8ac0e8a99979f720ae790de15a5efc1435d4816f79a3d377c2 |
|
MD5 | 438e7a5ab66fb2dfcbee515ca728d5da |
|
BLAKE2b-256 | 547a6e418d2a715f0e588b7853fbc55c1a88da022eb646f2f95179a5763745f3 |
Provenance
File details
Details for the file sphinx_collapse-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: sphinx_collapse-0.1.2-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.27.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a2082da3c779916cc4c4d44832db3522a3a8bfbd12598ef01fb9eb523a164d0 |
|
MD5 | 45cfb5e7e0f95a8f55dc69d33c7539f7 |
|
BLAKE2b-256 | 89bad1800e35ada0a164ba3ecac028536b8b6c294725f0f003a7cd55f7c4385d |