Skip to main content

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

MIT. See LICENSE and NOTICE.md.

Download files

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

Source Distribution

sphinx_vitepress-0.1.1.tar.gz (106.5 kB view details)

Uploaded Source

Built Distribution

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

sphinx_vitepress-0.1.1-py3-none-any.whl (35.6 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_vitepress-0.1.1.tar.gz.

File metadata

  • Download URL: sphinx_vitepress-0.1.1.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

Hashes for sphinx_vitepress-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2f06868db8097a005dca760b57a6d0eda07a1cc5951817d76a02dba82bdf0b2c
MD5 88da0adfbfe62c19fb38cdf32c1b68d4
BLAKE2b-256 10ea6661829bcba3440741687af197b8387d124d3489549a8c29fa62c65a1a75

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_vitepress-0.1.1.tar.gz:

Publisher: release.yml on rohandahale/sphinx-vitepress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphinx_vitepress-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_vitepress-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6abb144775f5f45f3fef49dbb3f98e148d8753e6feb03587c573aeda6fb8df93
MD5 602eb92db2a35cb9c07da90d9ffa66e2
BLAKE2b-256 beed5cc546aceb42962982e990eaf360a28245e8845829325edcaac71bb2b6ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_vitepress-0.1.1-py3-none-any.whl:

Publisher: release.yml on rohandahale/sphinx-vitepress

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page