Customization¶
Topbar¶
A responsive topbar is included to provide an overview and assist navigation.
Topbar Relations¶
Be default, links to the previous and next pages are included by default on
the right side of the topbar. To disable these pagination links, set the
topbar_relations option to False.
Sidebars¶
Sidebar Contents¶
By default, the sidebar is empty. Add sidebar contents by populating the conf.py html_sidebars option. For example:
# Custom sidebar templates, maps document names to template names.
html_sidebars = {'**': ['localtoc.html',
'relations.html',
'sourcelink.html'],
'index': [
'globaltoc.html']
}
Sidebar Location¶
To move the sidebar to the right, set the rightsidebar boolean in
conf.py:
html_theme_options = { 'rightsidebar': True }
Colorscheme¶
To use your own colorscheme,
- Install Node/NPM
npm install -g foundation-clifoundation new --framework sites --template basiccd projectname- Run
npm start - Edit
scss/_settings.scssto the desired settings - Copy
css/app.cssto the_staticdirectory of your Sphinx sources - Set the
stylesheetkey in the conf.pyhtml_theme_options.
For example:
html_theme_options = { 'stylesheet': 'myfoundationstyle.css' }
The pygments_style can be changed to a style that matches your theme.