This Sphinx theme is a fork of the official Read the Docs theme, which adds:
- Wildfish colour scheme
- Support for balanced full-width tables
- Support for strikethroughs with
:strike:`content`
- Support multiple sidebars
- Minor spacing enhancements
- Adds optional Wildfish logo to sidebar
Install:
pip install -e https://github.com/wildfish/sphinx_wildfish_theme.git
Add to conf.py
:
import sphinx_wildfish_theme extensions = [ ... 'sphinx_wildfish_theme', ] html_theme = "sphinx_wildfish_theme"
Optional settings for conf.py
:
html_theme_options = { "display_wildfish_logo": False, "wildfish_logo_text": "A project by", }
Check out the project from git
Update
conf.py
as above, but add:html_theme_path = ["/path/to/sphinx_wildfish_theme"]
Watch static and open the demo site in a browser:
nvm install nvm use npm run dev
The upstream project does not currently use black, so take care to not apply auto-formatting to files which originate upstream.
Build static:
npm run build
Update the fork number in the version string in
setup.py
andsphinx_wildfish_theme/__init__.py
Commit and push to
master
.
This project is not on pypi.
Pull into new branch:
git remote add upstream https://github.com/readthedocs/sphinx_rtd_theme.git git fetch upstream git checkout master git pull git checkout -b merge-upstream git merge upstream/master
Resolve any conflicts (ignoring
sphinx_wildfish_theme/static
- we'll rebuild that). In particular, check for changes in these files:README.rst
- keep our versionsetup.*
,MANIFEST.in
- check for newsphinx_rtd_theme
setup.py
- update version (add.fork0
to upstream)sphinx_wildfish_theme/__init__.py
- update version and check theme name issphinx_wildfish_theme
src/sass/theme.sass
- make suretheme_variables
is followed bywildfish_variables
andwildfish_styles
is at the bottomsphinx_rtd_theme/*
- move files over tosphinx_wildfish_theme
Test with:
npm install npm run dev
Rebuild and push:
npm run build git add . git commit git checkout master git merge merge-upstream git branch -d merge-upstream git push
See original documentation for: