A theme based on the theme of https://docs.python.org/3/ with some responsive enhancements.
Project description
docs |
|
---|---|
tests |
|
demo |
|
package |
A theme based on the theme of https://docs.python.org/3/ with some responsive enhancements.
Free software: BSD license
Installation
pip install sphinx_py3doc_enhanced_theme
Add this in your documentation’s conf.py:
import sphinx_py3doc_enhanced_theme
html_theme = "sphinx_py3doc_enhanced_theme"
html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path()]
Customization
No extra styling
This theme has some extra styling like different fonts, text shadows for headings, slightly different styling for inline code and code blocks.
To get the original styling Python 3 docs have add this in you conf.py:
html_theme_options = {
'githuburl': 'https://github.com/ionelmc/sphinx-py3doc-enhanced-theme/',
'bodyfont': '"Lucida Grande",Arial,sans-serif',
'headfont': '"Lucida Grande",Arial,sans-serif',
'codefont': 'monospace,sans-serif',
'linkcolor': '#0072AA',
'visitedlinkcolor': '#6363bb',
'extrastyling': False,
}
pygments_style = 'friendly'
Custom favicon
To have a custom favicon create a theme directory near your conf.py and add this theme.conf in it:
[theme]
inherit = sphinx_py3doc_enhanced_theme
Then create a favicon.png in the static directory.
And then edit your conf.py to have something like this:
import sphinx_py3doc_enhanced_theme
html_theme = "theme"
html_theme_path = [sphinx_py3doc_enhanced_theme.get_html_theme_path(), "."]
The final file structure should be like this:
docs ├── conf.py └── theme ├── static │ └── favicon.png └── theme.conf
Examples
Changelog
2.1.1 (2015-07-11)
Remove background from reference links when extrastyling is off.
2.1.0 (2015-07-11)
Added new theme option extrastyling which can be used to get the original Python 3 docs styling (green code blocks, gray inline code blocks, no text shadows etc)
The py.png favicon is renamed to favicon.png.
Added some examples for customizing the styling or using a custom favicon.
2.0.2 (2015-07-08)
Make inline code blocks bold.
2.0.1 (2015-03-25)
Fix inclusion of default.css (now classic.css).
2.0.0 (2015-03-23)
Use HTML5 doctype and force IE into Edge mode.
Add a embedded flag that removes JS (for building CHM docs).
Inherit correct theme (default renamed in Sphinx 1.3).
1.2.0 (2015-02-24)
Fat-fingered another version. Should had been 1.0.1 … damn.
1.1.0 (2015-02-24)
Match some markup changes in latest Sphinx.
1.0.0 (2015-02-13)
Fix depth argument for toctree (contributed by Georg Brandl).
0.1.0 (2014-05-31)
First release on PyPI.
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
File details
Details for the file sphinx-py3doc-enhanced-theme-2.1.1.tar.gz
.
File metadata
- Download URL: sphinx-py3doc-enhanced-theme-2.1.1.tar.gz
- Upload date:
- Size: 40.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9a3fb6ed5c15d65b915bb8c19cfd24007094761cba869925e8e0bb7c8cfd98 |
|
MD5 | c9c5e8d4756dc8dfb72c657581e0554a |
|
BLAKE2b-256 | 8faab6fe93e2af12e8eaa3988d8c00bd18c1601e436d9c34f548ec08803b4f14 |
Provenance
File details
Details for the file sphinx_py3doc_enhanced_theme-2.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinx_py3doc_enhanced_theme-2.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 35.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86c2e9ce4e76a212975e2e2b39353311cab77250d1413d78e5d3988d6b27cdd2 |
|
MD5 | d86eff3cfbdf8de984465bb58ccea56b |
|
BLAKE2b-256 | e684e2106964ebf694dc3bb36ea563eac85e0c3c41e6c9643cb79ba7b6ac3899 |