Skip to main content

Formal, static Sphinx theme with dark/light/system modes

Project description

Neon Static

A clean, professional Sphinx theme with a static layout and no animations.

Install

pip install neon-static

Or in requirements.txt:

neon-static==1.0.0

For local development:

pip install -e /path/to/neon-static

Standalone Sphinx usage

# conf.py
import os

project = "My Docs"

html_theme = "neon-static"

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_perf_log": "on" if _env_flag("NEONBOOK_PERF_LOG", "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_PERF_LOG: enable performance console logging (default: off)

NEONBOOK_VHS, NEONBOOK_PERF_SOUND, and NEONBOOK_PERF_NOTIFY are not used by this theme.

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_static-1.0.0.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

neon_static-1.0.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for neon_static-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2c3a55fa4e286ab1cb3ddb26c21a8f07172884286fa052fa1cb67e862525dfdf
MD5 35bee068c0cf5949e03d77f344a8cc66
BLAKE2b-256 c1844a92ba8b3d221430b8cccb72412ccb65d61a44b9c758be33ab072224b271

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for neon_static-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9d5b052a81aef53c0408a18baffc49f8b8bfc1d0dee36139a52dc9b04cd846af
MD5 b32af0014d018e1af8fdcaebcbd00625
BLAKE2b-256 9a15355c09ac15d529539d6794414f2e220d3a3f4e03682492408d25b5c1a987

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