Skip to content

Commit

Permalink
DOC: Switch to sphinx_material theme
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Mar 12, 2023
1 parent 71a12c6 commit 5de6206
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,30 @@
html_favicon = 'favicon.svg'
html_title = project + ' version ' + release

import sphinx_material
html_context = sphinx_material.get_html_context()
html_theme_path = sphinx_material.html_theme_path()
html_theme = 'sphinx_material'
html_theme_options = {
'navigation_with_keys': True,
'nav_title': 'nbsphinx',
#'color_primary': 'blue',
#'color_accent': 'light-blue',
'repo_url': 'https://github.com/spatialaudio/nbsphinx',
'repo_name': 'nbsphinx on Github',
'repo_type': 'github',
'globaltoc_depth': 3,
'globaltoc_collapse': True,
'master_doc': True,
}
html_show_sourcelink = True
html_sidebars = {
'**': [
'globaltoc.html',
#'localtoc.html',
]
}

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

# See https://www.sphinx-doc.org/en/master/latex.html
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-material
ipykernel
numpy
matplotlib
Expand Down

0 comments on commit 5de6206

Please sign in to comment.