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.0.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

sphinx_collapse-0.1.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sphinx_collapse-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c93af140e97d44830a4ccd8a0d659e8dea477dcdc34f33cbf2b585c5d470fcf1
MD5 df3f340e25611f7e97dcf46228166b4d
BLAKE2b-256 8595867040ffd0d37360874174214c8ed44941cd5d10b2ebbe3b60d7583a16f1

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for sphinx_collapse-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d95cf40bbec130984059de967295c3790084800885e6322cce6ba908cc98de
MD5 7b10a09205f80d41cc33658940473924
BLAKE2b-256 c2da82d92026d485bd4f55c09a75938e830fd92f9c25b153de37f7d96967a8c1

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