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.pyas 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.pyandsphinx_wildfish_theme/__init__.pyCommit 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_themesetup.py- update version (add.fork0to upstream)sphinx_wildfish_theme/__init__.py- update version and check theme name issphinx_wildfish_themesrc/sass/theme.sass- make suretheme_variablesis followed bywildfish_variablesandwildfish_stylesis 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: