From ff7d5f7c3a0a865a31ac827dad00799caae37b30 Mon Sep 17 00:00:00 2001 From: J0J0 Todos Date: Sat, 21 Oct 2023 09:44:20 +0200 Subject: [PATCH] Set and configure Sphinx theme "readthedocs" - Sticky Nnavigation (default but make sure) - Top left area white, to fit with beets logo background - Title "beets" - Logo only false, we want to see title - Version true, we want to see which beets version we are looking at - Issue: The latter two are invisible, would require custom CSS!!! --- docs/conf.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/conf.py b/docs/conf.py index 22f69e1fc..d7c9858aa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -59,10 +59,14 @@ man_pages = [ ), ] -# Options for Alabaster theme -html_theme = 'alabaster' +# Options for rtd theme +html_theme = 'sphinx_rtd_theme' html_theme_options = { - "fixed_sidebar": True, - "sidebar_collapse": True, # only expands active chapter in sidebar + 'sticky_navigation': True, + 'collapse_navigation': True, + "style_nav_header_background": "#ffffff", + 'logo_only': False, + 'display_version': True, } +html_title = "beets" html_logo = "assets/beets_logo.png"