Sphinx Theme Template#

Project hero image

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.

๐Ÿ“šDocumentation ยท ๐Ÿ“Ÿ Source code

Made with Copier badge GitHub Repo stars badge GitHub tests badge Code style Prettier badge MIT licence badge

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: