Set and configure Sphinx theme book

- Reduce base font a bit by custom.css
- Collapse nav
- Title "beets" below logo
This commit is contained in:
J0J0 Todos 2023-10-21 11:01:21 +02:00
parent 957a6e445c
commit 71873b66de
2 changed files with 9 additions and 2 deletions

3
docs/_static/css/custom.css vendored Normal file
View file

@ -0,0 +1,3 @@
html {
--pst-font-size-base: 0.9rem;
}

View file

@ -59,8 +59,8 @@ man_pages = [
),
]
# Options for pydata theme
html_theme = 'pydata_sphinx_theme'
# Options for book theme
html_theme = 'sphinx_book_theme'
html_theme_options = {
'collapse_navigation': True,
"logo": {
@ -69,3 +69,7 @@ html_theme_options = {
}
html_title = "beets"
html_logo = "assets/beets_logo.png"
html_static_path = ['_static']
html_css_files = [
'css/custom.css',
]