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-cli
foundation new --framework sites --template basic
cd projectname
- Run
npm start
- Edit
scss/_settings.scss
to the desired settings - Copy
css/app.css
to the_static
directory of your Sphinx sources - Set the
stylesheet
key 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.