From 238994d1ccbecb1fddcd5602d61b52c98f890c9a Mon Sep 17 00:00:00 2001 From: Katrina Prosise Date: Fri, 16 Aug 2024 07:27:54 -0400 Subject: [PATCH] Apply new RTD theme options Applied theme changes that are configurable without modifying CSS or HTML. Deeper changes to the theme can always be investigated later. Changes of note: * "+" symbol in sidebar next to sections which can be expanded to show subsections. We may wish to investigate changing the color to increase visibility, if this is an option we want to add to the docs. * Background color of sidebar updated to match website * External links are styled, so as to indicate such. QA steps: viewed rendered html in browser, ran linkcheck. No associated issue, minor changes to test out. Signed-off-by: Katrina Prosise --- source/_static/theme_overrides.css | 3 +++ source/conf.py | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/source/_static/theme_overrides.css b/source/_static/theme_overrides.css index 8ac6037d9..44691b157 100644 --- a/source/_static/theme_overrides.css +++ b/source/_static/theme_overrides.css @@ -102,3 +102,6 @@ li { html.writer-html5 .rst-content dl.field-list>dt:after { content: initial; } +.wy-nav-side { + background: #2C1256; + } diff --git a/source/conf.py b/source/conf.py index 12842c830..a455b5764 100644 --- a/source/conf.py +++ b/source/conf.py @@ -299,7 +299,12 @@ # than canonical_url html_theme_options = { 'logo_only': True, - 'canonical_url': 'https://docs.foundries.io/latest/' + 'canonical_url': 'https://docs.foundries.io/latest/', + 'collapse_navigation': False, + 'sticky_navigation': False, + 'navigation_depth': -1, + 'style_external_links': True, + 'style_nav_header_background': '#2C1256', }