Skip to main content

Secretum Sphinx RTD Theme Dark Mode

PyPi version PyPI pyversions PyPI download month

This Sphinx extension adds a toggleable dark mode to the Read the Docs theme. A little icon is added in the bottom right hand corner which allows the user to switch between light or dark mode.

Installation

Python 3.4 or higher is required

To install dark mode for the RTD theme, enter the following command into your terminal or command prompt.

# pip install secretum-sphinx-theme

Using the Extension

To use the extension, you will need to add it to the extensions array in your config file (conf.py).

extensions = ["secretum_sphinx_theme"]

You will also need to be using the Sphinx RTD theme for this to work. If your not, then the extension will change it for you as it only works for that theme.

Config

Below are the options that are customizeable for the extension. Currently, there is only one option available to configure.

Default Dark Mode

This lets you choose which theme the user sees when they load the docs for the first time ever. After the first time however, this setting has no effect as the users preference is stored in local storage within their browser. This option accepts a boolean for the value. If this option is true (the default option), users will start in dark mode when first visiting the site. If this option is false, users will start in light mode when they first visit the site.

# user starts in dark mode
default_dark_mode = True

# user starts in light mode
default_dark_mode = False

License

The Sphinx RTD Dark Mode module for Python is licensed under an MIT license.

Metadata

Release files for secretum-sphinx-theme 2022.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for secretum-sphinx-theme 2022.2
File Interpreter ABI Platform
secretum_sphinx_theme-2022.2-py3-none-any.whl Python 3 none any Details

Release files / secretum_sphinx_theme-2022.2-py3-none-any.whl

Download URL secretum_sphinx_theme-2022.2-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4fe641e1e9cacb0a421b67587d684db8f00d87961f7eae5c079753cb73051da3
BLAKE2b-256 checksum
How to use checksums
429f7c4ddb673370c611bd20dfb0ef4d2f82149671e76574450b27335dfb0f62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

Security for secretum-sphinx-theme 2022.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

2022.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page