Sphinx Theme Template#

A Copier template for creating modern Sphinx documentation themes with Tailwind CSS. It offers scaffolding for new themes, streamlines their development and testing, and gives a rich developer experience with debugging and automatic live reloading during development.
Developing custom Sphinx documentation themes can be challenging. The Sphinx theme is a collection of Python code, Jinja templates, and frontend HTML, JS, and CSS. This template offers scaffolding for new themes, streamlines Python and web tooling and building, and speeds up their development and testing.
This template results from the best practices and knowledge we gained by providing Sphinx hosting and custom Sphinx theme development at Documatt.
The repository is the Copier template. Copier is a command-line tool for creating projects from templates. It requires Python installed, but no knowledge of Python to use.
The recommended way to install the Copier is uv. The uv can even install Python if you donโt already have it.
With uv installed, open the terminal and
uvx copier copy gh:documatt/sphinx-theme-template my-new-theme
Answer the series of questions, and you are ready to go. You have the skeleton of a completely functional Sphinx theme in my-new-theme
folder in just a few moments. Use .
for the current folder.
Key Features#
Main Sphinx theme template features:
๐ฏ Free & open-source.
โ๏ธ Modern Node.js frontend tooling with Tailwind CSS.
๐๏ธ Modern Python setup with
pyproject.toml
, pytest, etc.๐ The real-world documentation sample to test themes.
๐ Sane configuration defaults and best practices.
๐จ VS Code support: recommended extensions, settings, and formatting.
โ๏ธ Live reload on change.
๐พ Build to multiple outputs.
๐ Works out-of-the-box.
Learn more in ๐documentation.
Sphinx Documentation Template#
Are you looking for a documentation template instead? See also our sphinx-doc-template.
Community and contributions#
Bug reports, feature requests, or all contributions are welcome at our ๐ GitHub homepage.
Connect with other fellows who are building with Sphinx. Share knowledge, get help, and contribute to the open-source project. Check out our Documatt Community page for featured material and upcoming events.
Join our community here:
๐ Explore our GitHub
๐ฆ Follow us on X
๐ด๏ธ Follow us on LinkedIn
๐ Read our blog posts
Legal#
The project is MIT-licensed.
Icon โcopyโ by TabletIcons.
Contents: