docs - support flyout selector addon

This commit is contained in:
Cody Glassman 2025-06-19 10:06:42 -07:00
parent b0fb0024bc
commit d500f801cc
2 changed files with 24 additions and 1 deletions

View File

@ -1,6 +1,29 @@
:root {
--link: #4a90e2;
--link-hover: #1c6cd9;
--readthedocs-search-color: hsl(var(--foreground));
--readthedocs-search-link-color: var(--link);
--readthedocs-search-content-background-color: hsl(var(--background));
--readthedocs-search-content-border-color: hsl(var(--border));
--readthedocs-search-footer-background-color: hsl(var(--background));
--readthedocs-search-footer-color: hsl(var(--foreground));
--readthedocs-search-footer-code-background-color: hsl(var(--background));
--readthedocs-search-footer-code-border-color: hsl(var(--background));
--readthedocs-search-input-background-color: hsl(var(--accent));
--readthedocs-search-result-color: hsl(var(--foreground));
--readthedocs-search-result-icon-color: hsl(var(--foreground));
--readthedocs-search-result-heading-color: hsl(var(--foreground));
--readthedocs-search-result-subheading-color: hsl(var(--foreground));
--readthedocs-search-result-active-background-color: hsl(var(--accent));
--readthedocs-search-result-border-color: hsl(var(--border));
--readthedocs-flyout-background-color: hsl(var(--background));
--readthedocs-flyout-color: hsl(var(--foreground));
--readthedocs-flyout-current-version-color: hsl(var(--foreground));
--readthedocs-flyout-item-link-color: var(--link);
--readthedocs-flyout-link-color: var(--link);
--readthedocs-flyout-section-heading-color: hsl(var(--foreground));
}
/* Less aggressive dark background */

View File

@ -163,7 +163,7 @@ html_theme_options = asdict(ThemeOptions(
"Lua API": "reference/lua-scripting/overview",
"Postprocessing": "reference/postprocessing/index",
},
show_scrolltop=True,
show_scrolltop=False, # Useful, but hard to position with the Flyout addon since the best place for that is bottom right
))
html_permalinks_icon = Icons.permalinks_icon