About the Sphinx Pythia Theme#
The Sphinx Pythia Theme is a Sphinx Theme that inherits directly from the Sphinx Book Theme used by the amazing Jupyter Book project. As a result, the Sphinx Pythia Theme, through the Sphinx Book Theme, inherits from the awesome PyData Sphinx Theme, which provides a great deal of functionality.
On top of all of these amazing themes, the Sphinx Pythia theme add a few simple new features.
Special Page layouts#
The Sphinx Pythia Theme comes with two special layouts for pages: the banner layout, and the standalone layout.
Standalone Pages#
Standalone pages use the page-standalone.html
template in the same way that the
banner pages above use the page-banner.html
template. Standalone pages have
the same heading and text styling used by banner pages, but they do not have extra
padding nor the ability to declare banner backgrounds to the sections. The
Standalone Pages page is an example of this layout.
Custom Templates#
The Sphinx Pythia Theme uses certain custom templates to define how the content in certain
sections of the page will display. For the links in the top navigation bar, the navbar-menu.html
template is used. For how to define banner and standalone page layouts, the page-banner.html
and the page-standalone.html
templates are used. For footer content, the footer-logos.html
,
footer-info.html
, footer-menu.html
, and the footer-extra.html
templates are used.
Anyone can override these templates by putting their own versions of these templates (i.e.,
using the same template filenames) in a _templates
directory within their Sphinx or Jupyter
Book source (at the same level as their conf.py
or _config.yml
files).