Skip to main content

A Sphinx theme and directive set bringing the Hextra aesthetic to Sphinx, with sphinx-needs integration.

Project description

sphinx-hextra

A Sphinx HTML theme and component directive set that brings the aesthetic of the Hextra Hugo theme to the Sphinx documentation ecosystem, with first-class styling for sphinx-needs.

sphinx-hextra is a derivative work. Visual design, component concepts, and CSS structure are ported from Hextra (MIT, © Imfing and contributors). The upstream LICENSE is preserved verbatim at licenses/HEXTRA-LICENSE. See CREDITS.md for full attribution.

Install

uv add sphinx-hextra

Use

In your conf.py:

extensions = ["myst_parser", "sphinx_hextra"]
html_theme = "sphinx_hextra"

Features (v0.1)

  • Hextra-inspired layout, typography, and dark mode
  • Directives: hextra-callout, hextra-cards + hextra-card, hextra-tabs, hextra-steps, hextra-filetree
  • Landing-page directives: hextra-hero, hextra-feature-grid, hextra-feature
  • Automatic sphinx-needs integration styling (when sphinx_needs is enabled)
  • Zero Node.js dependency for end users — CSS is precompiled

Credits

This project stands on the shoulders of Hextra. Every design decision traces back to their work. Bugs here are ours; beauty is theirs.

License

MIT. See LICENSE (sphinx-hextra) and licenses/HEXTRA-LICENSE (upstream Hextra).

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

sphinx_hextra-0.1.0.dev0.tar.gz (17.3 kB view details)

Uploaded Source

Built Distribution

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

sphinx_hextra-0.1.0.dev0-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

Details for the file sphinx_hextra-0.1.0.dev0.tar.gz.

File metadata

  • Download URL: sphinx_hextra-0.1.0.dev0.tar.gz
  • Upload date:
  • Size: 17.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sphinx_hextra-0.1.0.dev0.tar.gz
Algorithm Hash digest
SHA256 7d28a00ca3d7ba899951c7e2243f2be4c82cb12c1a1949b67195e08ffa07d1e0
MD5 feab1b6727ad675d552b805279bae626
BLAKE2b-256 658949e6aa500c4aea11a5c30e05da9697d38161c2ba5176fa7566c0b516dddc

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_hextra-0.1.0.dev0.tar.gz:

Publisher: release.yml on patdhlk/sphinx-hextra

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_hextra-0.1.0.dev0-py3-none-any.whl.

File metadata

File hashes

Hashes for sphinx_hextra-0.1.0.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 abee28c153b34de5962c6aea031606f7391596c2a9f534481e751fb39363288b
MD5 3b3e1689f80945f1235666d01ae8e168
BLAKE2b-256 ce70172d229e09be89775509f5112a80181aff722cd3d6a4cc4c91f40dc93249

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphinx_hextra-0.1.0.dev0-py3-none-any.whl:

Publisher: release.yml on patdhlk/sphinx-hextra

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

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