Neon Wave Sphinx theme with neon grid styling
Project description
Neon Wave
A neon-wave Sphinx theme with neon grid styling and dark/light/system modes.
Install
pip install neon-wave
Or in requirements.txt:
neon-wave==1.0.0
For local development:
pip install -e /path/to/neon-wave
Standalone Sphinx usage
# conf.py
import os
project = "My Docs"
html_theme = "neon-wave"
html_theme_options = {
"light_logo": "logo-light.svg",
"dark_logo": "logo-dark.svg",
"sidebar_hide_name": False,
"navigation_with_keys": True,
"default_theme": "system",
"show_toc_level": 2,
}
def _env_flag(name, default="off"):
return os.getenv(name, default).lower() not in ("0", "off", "false", "no")
html_context = {
"neonbook_vhs": "on" if _env_flag("NEONBOOK_VHS", "on") else "off",
"neonbook_perf_log": "on" if _env_flag("NEONBOOK_PERF_LOG", "off") else "off",
"neonbook_perf_sound": "on" if _env_flag("NEONBOOK_PERF_SOUND", "off") else "off",
"neonbook_perf_notify": "on" if _env_flag("NEONBOOK_PERF_NOTIFY", "off") else "off",
}
Theme options
light_logo: logo for light modedark_logo: logo for dark modesidebar_hide_name: hide project name in the sidebarnavigation_with_keys: enable keyboard navigationdefault_theme:"dark","light", or"system"show_toc_level: depth of headings shown in the sidebar
Logo files are expected under _static/ (for example, _static/logo-light.svg).
Environment variables
These are optional. The theme reads them from html_context, so you can either set the keys directly or wire them from environment variables in conf.py.
NEONBOOK_VHS: toggle VHS effects (default:on)NEONBOOK_PERF_LOG: enable performance console logging (default:off)NEONBOOK_PERF_SOUND: play a siren on heavy load (default:off)NEONBOOK_PERF_NOTIFY: desktop notification on heavy load (default:off)
For boolean flags, any value other than 0, off, false, or no is treated as on.
License
Apache License 2.0. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file neon_wave-1.0.1.tar.gz.
File metadata
- Download URL: neon_wave-1.0.1.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ccb6ff581d5dd6dca33e3ef47e692f4593eaa6deaad414c29b45b132ece8a4a
|
|
| MD5 |
6187bba88ea508af886a5d8d979ae9bd
|
|
| BLAKE2b-256 |
b64eba5b72883df7bbd9791786656d9ba7f4e8e0bf6a1d6e295858b90f0ba5fa
|
File details
Details for the file neon_wave-1.0.1-py3-none-any.whl.
File metadata
- Download URL: neon_wave-1.0.1-py3-none-any.whl
- Upload date:
- Size: 30.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2cb7a09678b02ab7e8d7359520dba917cd2da7651f43dde528620eb02d2f94b0
|
|
| MD5 |
d59cd9b4073c3a6ed551231bc2afff30
|
|
| BLAKE2b-256 |
8d30a65dba381c3defc09b4d38acfdc8b5e305deb38565b6932b76d542bbb41e
|