About the Sphinx Syft Theme
The Sphinx Syft Theme is a Sphinx Theme
that inherits directly from the Sphinx Basic Theme
This theme derived inspirations from:
- Pydata Sphinx Theme
- Sphinx Book Theme
- Sphinx Pythia Theme
Top Navigation Bar
The Sphinx Syft Theme added back the fixed top navigation bar influenced by the PyData Sphinx Theme.
The links on the navigation bar can be set with the html_theme_options navbar_links option.
This is a list of dictionaries containing a name key, url key, and an external key. The
name key can be any string that you want to appear in the navbar. The url key is a string
containing the URL that should be associated with the name in the navbar, and the external key
is a boolean indicating if the link is external or not. (If external, an icon will be displayed
next to the name in the navbar indicating that clicking the link takes you away from the site).
Additionally, the external links
(external_links) option still works, and these links will be displayed after any links specified by
the navbar_links option.
Note
The url value can be a Sphinx document name, in addition to an absolute or relative URL. In fact,
using Sphinx document names is the best way of generating the link correctly on different pages.
Custom Templates
The Sphinx Syft 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 file).