Skip to main content

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

Project description

Sphinx-Dropdown-Toggle

Introduction

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

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 git+https://github.com/TeachBooks/Sphinx-Dropdown-Toggle.git

Step 2: Add to requirements.txt

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

git+https://github.com/TeachBooks/Sphinx-Dropdown-Toggle.git

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 README.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 README.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-0.0.2.tar.gz (6.4 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-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for sphinx_dropdown_toggle-0.0.2.tar.gz
Algorithm Hash digest
SHA256 7f9c3b3fe1dad967b7bc27385ea026d5955a61e2ccdb25221c2cca6237dd6d9e
MD5 8ee2af5feeb18b2b202b1265b44e3853
BLAKE2b-256 aca848ce6c67efb95c77c9093a7ef25faf8d8f314e0ee45e87b58f909383b7bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_dropdown_toggle-0.0.2.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-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_dropdown_toggle-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fc91f2a6fa23b90171f5162721b0e654a62e46eabab0e4b14f611f9bb46d1310
MD5 ab1f0c3394dd812ddd2f939d67426e03
BLAKE2b-256 024a1a5962299695a353a8e1444bd57f6279169a65f1929d5db8c62af7c9b35b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_dropdown_toggle-0.0.2-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