This release is a pre-release and may not be stable for production use.
gp-sphinx-vite
Transparent Vite + pnpm orchestration for Sphinx theme asset pipelines.
A Sphinx extension that spawns pnpm exec vite build --watch from
builder-inited so theme authors iterating templates and SCSS get fresh
furo.css / furo.js on disk without remembering a separate
vite build command. The extension is a no-op in production (when
sphinx-build runs without the autobuild driver), so wheels published to
PyPI never carry a Node runtime requirement.
Status
Skeleton — only setup() and config-value registration are wired up.
Subprocess management (ViteProcess), the asyncio↔threading bridge, and
the actual spawn/teardown lifecycle (with signal handling and idempotent
re-spawn for sphinx-autobuild) land in subsequent commits.
Usage (eventual)
# conf.py
extensions = ["gp_sphinx_vite"]
# Optional. Defaults to "auto": dev iff SPHINX_AUTOBUILD env var is set
# or sys.argv[0] ends with "sphinx-autobuild"; prod (no-op) otherwise.
gp_sphinx_vite_mode = "auto"
# Optional. Path to the directory containing package.json + vite.config.ts.
# Defaults to <theme directory>/web (resolved relative to the active theme).
gp_sphinx_vite_root = None
Config
| Name | Type | Default |
|---|---|---|
gp_sphinx_vite_mode |
Literal["auto", "dev", "prod"] |
"auto" |
gp_sphinx_vite_root |
str | None |
None (auto-detect) |
Release files for gp-sphinx-vite 0.0.1a16.dev2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| gp_sphinx_vite-0.0.1a16.dev2.tar.gz | 14.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| gp_sphinx_vite-0.0.1a16.dev2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.4 kB
Release files / gp_sphinx_vite-0.0.1a16.dev2.tar.gz
| Download URL | gp_sphinx_vite-0.0.1a16.dev2.tar.gz |
|---|---|
| Size | 14.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
524c1d5ad9800bef31d8f2ffb9778dde9a2934e218278a50a3cfc68d023b59da
|
|
BLAKE2b-256 checksum How to use checksums |
3c5ae1860dfbdd80c4e8511ca3b7514dff37ab2305f862fad7a18127b5abefe0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 3, 2026.
Transparency logRelease files / gp_sphinx_vite-0.0.1a16.dev2-py3-none-any.whl
| Download URL | gp_sphinx_vite-0.0.1a16.dev2-py3-none-any.whl |
|---|---|
| Size | 15.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
44a494f5cf4cb8b314bae456ea7184046ee185a03f61b860506bd3990a3f63db
|
|
BLAKE2b-256 checksum How to use checksums |
89981c1eb433e2cf5453ee157183090b4d2be97ca096664a68039fd9db5cf8cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 3, 2026.
Transparency log