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.1.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.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for neon_static-1.0.1.tar.gz
Algorithm Hash digest
SHA256 f019abdc9093e233fbf7f446c799e904850056370089386204099db217e4dc03
MD5 b868dbcd14c988a63edd6b51d9cced8b
BLAKE2b-256 a1cdfb9a09219e88b676ce725fee71cc78968f2f04c88a2052a76c00785b8b08

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for neon_static-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9c27be36a5caa9e5a1e866fc2a0ac95671886c70f0510fdc3b1bfae24cbb5acf
MD5 2f2307171739e93c04ef7d7a7eb65b62
BLAKE2b-256 16006d1d5a1e12fd95d1551dba7b7dacf247c073906f7c42b1ee3ba5488e601b

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