Skip to content

Commit

Permalink
DOC: Switch to bootstrap theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Apr 29, 2021
1 parent f90f6be commit 4c6ab6b
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# Use sphinx-quickstart to create your own conf.py file!
# After that, you have to edit a few things. See below.

import sphinx_bootstrap_theme

# Select nbsphinx and, if needed, other Sphinx extensions:
extensions = [
'nbsphinx',
Expand Down Expand Up @@ -114,6 +116,23 @@

html_favicon = 'favicon.svg'
html_title = project + ' version ' + release
html_theme = 'bootstrap'
html_theme_path = sphinx_bootstrap_theme.get_html_theme_path()
html_theme_options = {
'navigation_with_keys': True,
'navbar_title': 'nbsphinx',
'navbar_site_name': 'Pages',
#'navbar_pagenav': False,
#'navbar_sidebarrel': False,
'navbar_pagenav_name': 'This Page',
#'globaltoc_depth': -1,
'navbar_fixed_top': True,
'source_link_position': 'none',
#'bootswatch_theme': 'cosmo',
#'bootswatch_theme': 'lumen',
#'bootswatch_theme': 'sandstone',
'bootswatch_theme': 'spacelab',
}

# -- Options for LaTeX output ---------------------------------------------

Expand Down
1 change: 1 addition & 0 deletions doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
sphinx_bootstrap_theme
ipykernel
numpy
matplotlib
Expand Down

0 comments on commit 4c6ab6b

Please sign in to comment.