Skip to main content

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 mode
  • dark_logo: logo for dark mode
  • sidebar_hide_name: hide project name in the sidebar
  • navigation_with_keys: enable keyboard navigation
  • default_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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

neon_wave-1.0.0.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

neon_wave-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file neon_wave-1.0.0.tar.gz.

File metadata

  • Download URL: neon_wave-1.0.0.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for neon_wave-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b8a34a0e6da8afba30abe5238d96c6b808cb7da02219c852c02ee942fadee9f6
MD5 fd712c72fe33a5ab458e0e6c98df9f84
BLAKE2b-256 3284687db4ef0d99791b5099ace3ef4ce5f098bb8d3f61a3e7f54c0bc066e775

See more details on using hashes here.

File details

Details for the file neon_wave-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: neon_wave-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for neon_wave-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 956d3cda502ded64df7a4c665b81ff7ffb85f821d7465812ef2e3f6b522f5d46
MD5 c6a1ce7449bef0be905f40374acdd47d
BLAKE2b-256 5efb9286b7794e65306a5e472b13a51569e472507d9f90b1f9da6dcd8e8dbafb

See more details on using hashes here.

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