Skip to main content

Sphinx extension that, on pages with dropdown elements, adds a button to open/close all dropdowns simultaneously.

Project description

Dropdown Toggle

Introduction

This Sphinx extension adds a button to open/close all dropdowns simultaneously, provided at least one dropdown is present.

This extension also applies the preserve_dropdown_state patch from JupyterBook-Patches.

Installation

To install the Sphinx-Dropdown-Toggle, follow these steps:

Step 1: Install the Package

Install the Sphinx-Dropdown-Toggle package using pip:

pip install sphinx-dropdown-toggle

Step 2: Add to requirements.txt

Make sure that the package is included in your project's requirements.txt to track the dependency:

sphinx-dropdown-toggle

Step 3: Enable in _config.yml

In your _config.yml file, add the extension to the list of Sphinx extra extensions:

sphinx: 
    extra_extensions:
        - sphinx_dropdown_toggle

Contribute

This tool's repository is stored on GitHub. The MANUAL.md of the branch main is also part of the TeachBooks manual as a submodule. If you'd like to contribute, you can create a fork and open a pull request on the GitHub repository. To update the MANUAL.md shown in the TeachBooks manual, create a fork and open a merge request for the GitHub repository of the manual.

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_dropdown_toggle-1.3.3.tar.gz (17.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinx_dropdown_toggle-1.3.3-py3-none-any.whl (49.3 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_dropdown_toggle-1.3.3.tar.gz.

File metadata

  • Download URL: sphinx_dropdown_toggle-1.3.3.tar.gz
  • Upload date:
  • Size: 17.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphinx_dropdown_toggle-1.3.3.tar.gz
Algorithm Hash digest
SHA256 0142e20c3aa5fa18e605d43ee5922c2a3e8fda1ee966fc0e58e76b7eb74e5c53
MD5 f17deafd6afba0cdd3604985ce3aab92
BLAKE2b-256 55a216ee9755176c6a7dadfbe716405b0d0d8e9b9dc885a2986ef96040a93c08

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_dropdown_toggle-1.3.3.tar.gz:

Publisher: python-publish.yml on TeachBooks/Sphinx-Dropdown-Toggle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_dropdown_toggle-1.3.3-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_dropdown_toggle-1.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 182182ba0fe4c515555a73d6d856cfa6e922eb4b4b574a7b19bd007fac78d242
MD5 2e9abcefb27531eeff9216efd5802c32
BLAKE2b-256 bb1c6f22279218e978b08d6d301a8991547a585c3699942a33740de81843bdc5

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_dropdown_toggle-1.3.3-py3-none-any.whl:

Publisher: python-publish.yml on TeachBooks/Sphinx-Dropdown-Toggle

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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