README in Spanish
Collection of modern themes for documentation with pdoc. // Colección de temas modernos para documentación con pdoc.
This repository provides a set of ready-to-use themes for pdoc so you can generate clean, modern HTML documentation for your Python projects.
You can use the themes directly by cloning or downloading this repository.
git clone https://github.com/Jorge-de-la-Flor/pdoc-modern-themes.gitThen point pdoc to the theme folder you want to use (see “Available themes”).
Alternatively, you can copy a specific theme folder into your project (for example into docs_theme/ or similar).
Generate static HTML documentation with one of the themes:
pdoc <module-or-dir> -t <theme-name> -o docs-
<module-or-dir>: your package or module (for example apider). -
<theme-name>: the folder name of the theme inside this repository (for example rust).
pdoc <module-or-dir> -t <theme-name>Example:
pdoc asyncio -t rust -o docsThis will generate the documentation for the standard library asyncio module using the rust-style theme into the docs/ directory.
Current available themes are the ones not marked as WIP.
- Rust: inspired by the official Rust documentation style.
- Dracula: classic Dracula dark color scheme.
- GitHub: GitHub-like dark/onedark style.
- Svelte (WIP): inspired by the Svelte documentation layout.
Each theme lives in its own folder and can be referenced by that folder name in the -t option.
Visual previews of some themes:
![]() | ![]() |
![]() | Svelte WIP |
If you want to see a theme in action, open its folder and follow the usage instructions with that theme name.
The goal of this repository is to make it easy to create and extend pdoc themes using a shared set of CSS variables like var(--color-*).
- Common colors and layout decisions are expressed as CSS variables.
- You can start a new theme by copying an existing one and adjusting only the variables and small layout pieces.
This makes it straightforward to keep multiple themes consistent while still giving each one a distinct look.
To test a theme during development, you can use a local module with example content and run:
pdoc _project/core/ -t <theme-name>Replace with the folder name of the theme you are working on.
Open the URL that pdoc prints in your browser (for example http://localhost:8080/…) and refresh as you tweak the templates and CSS.
Looking for themes for the legacy pdoc (pre-2024 versions)? You can use the syn themes here: https://github.com/nxtlo/syn


