sphinx-vitepress
A Sphinx builder that renders your documentation with VitePress. It is the Python counterpart of DocumenterVitepress.jl.
Documentation: https://www.rohandahale.com/sphinx-vitepress/ (built with this package).
Keep your conf.py, autodoc, NumPy-style docstrings, and intersphinx cross-references;
swap classic Sphinx HTML for a modern VitePress site.
sphinx-vitepress build docs produces a complete VitePress site: markdown,
generated config, theme, and objects.inv. The documentation is itself built
this way, so the site you read is the output of the tool it describes.
Quick start
pip install sphinx-vitepress # not yet published; use a git checkout
sphinx-vitepress init docs # or point it at an existing docs/ dir
sphinx-vitepress dev docs # live preview
sphinx-vitepress build docs _site # production build
Existing Sphinx projects need no changes: autodoc, napoleon, intersphinx and
MyST keep working, and sphinx-build -b vitepress <src> <out> also works
directly.
Configuration
All settings are optional; html_logo, html_favicon and copyright are
picked up from your existing Sphinx config.
| Setting | Purpose |
|---|---|
vitepress_repo |
GitHub icon in the navbar and per-page edit links |
vitepress_accent |
accent palette: a preset (blue, afmhot, viridis, plasma, inferno, magma, cividis, ocean), a hex color, four hex stops, or {"light": …, "dark": …} |
vitepress_frontmatter |
per-page VitePress frontmatter. Use {"index": {"layout": "home", "hero": {...}}} for a hero landing page |
vitepress_docstring_style |
"details" (collapsible API cards, default) or "headings" |
vitepress_inline_toctree |
keep Sphinx's inline toctree lists (off by default; the sidebar already has them) |
vitepress_base, vitepress_title, vitepress_description |
site basics |
Versioned deploys:
sphinx-vitepress deploy docs --deploy-dir _site --release v1.2.3 --repo-base /my-repo/
License
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 sphinx_vitepress-0.1.0.tar.gz.
File metadata
- Download URL: sphinx_vitepress-0.1.0.tar.gz
- Upload date:
- Size: 106.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
69513d93251ce5125f844abea185874b54a7b7a4568f82412bfac394784becab
|
|
| MD5 |
f54655290fa011394cd8592451f73298
|
|
| BLAKE2b-256 |
16efce6e1efee61268c5c14d6431c828ddf9606aa686f991f306a1daf91687b5
|
Provenance
The following attestation bundles were made for sphinx_vitepress-0.1.0.tar.gz:
Publisher:
release.yml on rohandahale/sphinx-vitepress
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_vitepress-0.1.0.tar.gz -
Subject digest:
69513d93251ce5125f844abea185874b54a7b7a4568f82412bfac394784becab - Sigstore transparency entry: 2468848845
- Sigstore integration time:
-
Permalink:
rohandahale/sphinx-vitepress@8eaa02f4a26dcdec37ead5feddbf37a2937cc433 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rohandahale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8eaa02f4a26dcdec37ead5feddbf37a2937cc433 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sphinx_vitepress-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sphinx_vitepress-0.1.0-py3-none-any.whl
- Upload date:
- Size: 35.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60cda49182b5b0fec7389b056d54849afe6923f93435bc8b268d6668e1eed485
|
|
| MD5 |
8dcdd2dcda7b818e517f1f1aa3b93189
|
|
| BLAKE2b-256 |
8e3226fe41b630cc2c25866b915bf09e1fabb6f7e9ea637393917331a5862441
|
Provenance
The following attestation bundles were made for sphinx_vitepress-0.1.0-py3-none-any.whl:
Publisher:
release.yml on rohandahale/sphinx-vitepress
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphinx_vitepress-0.1.0-py3-none-any.whl -
Subject digest:
60cda49182b5b0fec7389b056d54849afe6923f93435bc8b268d6668e1eed485 - Sigstore transparency entry: 2468848858
- Sigstore integration time:
-
Permalink:
rohandahale/sphinx-vitepress@8eaa02f4a26dcdec37ead5feddbf37a2937cc433 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/rohandahale
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8eaa02f4a26dcdec37ead5feddbf37a2937cc433 -
Trigger Event:
push
-
Statement type: