An awesome theme for the Sphinx documentation generator
Project description
This is an awesome theme for the Sphinx documentation generator. See how the theme looks on the demo page.
Features
The theme includes several usability improvements:
- Awesome code blocks
Code blocks have a Copy button, allowing you to copy code snippets to the clipboard. They also show the programming language of the code block.
Sphinx’s code-block directives are enhanced with emphasize-added and emphasize-removed options for highlighting added and removed lines.
- Awesome new directive for highlighting placeholder variables
The theme supports a new directive samp, which is the equivalent of the built-in :samp: interpreted text role. This allows you to highlight placeholder variables in code blocks.
- Awesome user experience improvements
A lot of small features make the theme more usable. To name a few:
Use the Tab key to navigate through all sections of the page. Every page has a Skip to Content link to bypass navigation links.
Link to notes, warnings, etc. Their titles have IDs and use the same “permalink” mechanism as headings and other captions.
Better “permalink” mechanism. Hovering over an element with a permalink reveals a Link icon. Select the Link icon to copy the link to the clipboard.
Collapsible navigation menu: All pages are reachable from all other pages.
CSS tooltips. Provide more accessible information compared to the title attribute which only works for mouse users.
Press the / (Slash) key to focus the search input and start searching.
Installation
Install the theme as a Python package:
$ pip install sphinxawesome-theme
Read the full installation instructions for more information.
Usage
To use the theme, set the html_theme configuration setting in the Sphinx configuration file conf.py:
html_theme = "sphinxawesome_theme"
Read the full usage information for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for sphinxawesome-theme-1.15.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e28d56d80184b5dc3cb8037968c78040e4374ecb6add38b828433ac723d8e098 |
|
MD5 | 93ed3452deb502713916c155ec3437ca |
|
BLAKE2b-256 | a576a6872dcc2bfd0efe784945815df2b15f2bf88f92b862793045bf26826f37 |
Hashes for sphinxawesome_theme-1.15.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1983421b6fbd38cd873b6114470749efae0a74ca098fec1d8eebc500a38094c |
|
MD5 | 7262ad65e0a647247edd0d4244b560f2 |
|
BLAKE2b-256 | 3cb78904826d731356c22a0baf3f55b4cfce5572fc439f645e640918bf9489df |