Skip to main content

Collapse extension for Sphinx.

Project description

sphinx-collapse is a Sphinx extension that helps you recognize the people who have contributed to an open-source project.

Collapsibles are useful to hide large amounts of content:

https://raw.githubusercontent.com/dgarcia360/sphinx-collapse/main/docs/source/_static/example.png

Installation

  1. Install sphinx-collapse using PIP.

    pip install sphinx-collapse
  2. Add the extension to your Sphinx project conf.py file.

    extensions = ['sphinxcontrib.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:

https://raw.githubusercontent.com/dgarcia360/sphinx-collapse/main/docs/source/_static/example.png

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

sphinx_collapse-0.1.1.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

sphinx_collapse-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_collapse-0.1.1.tar.gz.

File metadata

  • Download URL: sphinx_collapse-0.1.1.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for sphinx_collapse-0.1.1.tar.gz
Algorithm Hash digest
SHA256 51352f1f3fcd8d3c672a0ede3c4240f6a3a8558e4d0883725e978d5dc6c8f8d2
MD5 ab48c2702192b97594f53c75a1672044
BLAKE2b-256 d72dee83060868cd32c23a6d63daa92e377cbf649d561e85d68aa3eb41fb799e

See more details on using hashes here.

Provenance

File details

Details for the file sphinx_collapse-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_collapse-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 16c13a614074393acac304af1ee722c6dd93e4fe3ab2333b3a52ee6ac05f6964
MD5 6be486caec0e9501536ca675c3aa6bb2
BLAKE2b-256 4190200ce6ef9bd18d790178f47cb17e3e29544da3417ad5085fe41ccb29af44

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page