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
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.
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.3.tar.gz
.
File metadata
- Download URL: sphinx_collapse-0.1.3.tar.gz
- Upload date:
- Size: 18.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cae141e6f03ecd52ed246a305a69e1b0d5d05e6cdf3fe803d40d583ad6ad895a |
|
MD5 | d41cc8fc519d75a6595c201f46a6d496 |
|
BLAKE2b-256 | e702183559e508906f7282d4dd6ccbf443efddaa3114b7f6fab425949b37a003 |
File details
Details for the file sphinx_collapse-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: sphinx_collapse-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85fadb2ec8769b93fd04276538668fa96239ef60c20c4a9eaa3e480387a6e65b |
|
MD5 | 55618339eedd66ac376bae006a8b0f24 |
|
BLAKE2b-256 | 2f2f5889082a6a535aa8613a327308582914517082967583ad45586b7d61c145 |