From b6eb9a0dd3766000cef7606d332015fd1e30b5d1 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Sun, 16 Mar 2025 20:35:01 +0100 Subject: [PATCH] Optimized sphinx theme --- roles/docker-portfolio/templates/config.yaml.j2 | 9 +++++++-- .../nginx-modifier-css/templates/global.css.j2 | 17 +++++++++++++---- sphinx/_templates/local_md_files.html | 2 +- sphinx/conf.py | 12 +++++------- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/roles/docker-portfolio/templates/config.yaml.j2 b/roles/docker-portfolio/templates/config.yaml.j2 index 5f9198cf..f5844867 100644 --- a/roles/docker-portfolio/templates/config.yaml.j2 +++ b/roles/docker-portfolio/templates/config.yaml.j2 @@ -676,6 +676,7 @@ navigation: {% endif %} {% endif %} {% endif %} + - name: Support Us description: "Discover all the ways you can support our work." icon: @@ -701,13 +702,17 @@ navigation: icon: class: fa-brands fa-github url: https://s.veen.world/githubsponsors -{% if "spinx" in group_names %} - - name: Documentation & Support + +{% if "sphinx" in group_names %} + + - name: Documentation description: Access our comprehensive documentation and support resources to help you get the most out of the software. icon: class: fas fa-book url: https://{{domains.sphinx}} + {% endif %} + - name: Imprint description: Check out the imprint information icon: diff --git a/roles/nginx-modifier-css/templates/global.css.j2 b/roles/nginx-modifier-css/templates/global.css.j2 index 7a00f460..15ef7dff 100644 --- a/roles/nginx-modifier-css/templates/global.css.j2 +++ b/roles/nginx-modifier-css/templates/global.css.j2 @@ -602,10 +602,19 @@ html[native-dark-active] my-app button, button { --card-header-accent: var(--color-85); /* Accent color in card headers */ /* Dropdown Menus */ - --dropdown-item-hover-bg: var(--color-05); /* Hover background: very dark */ - --dropdown-item-hover-color: var(--color-60); /* Hover text: a bit lighter */ - --dropdown-item-color: var(--color-70); /* Regular dropdown item text */ - --dropdown-item-active-color: var(--color-99);/* Active state: very light (white) */ + --dropdown-item-hover-bg: var(--color-05); /* Hover background: very dark */ + --dropdown-item-hover-color: var(--color-60); /* Hover text: a bit lighter */ + --dropdown-item-color: var(--color-70); /* Regular dropdown item text */ + --dropdown-item-active-color: var(--color-99); /* Active state: very light (white) */ +} + +/** Sphinx **/ +.bg-background\/95 { + background-color: var(--color-96); +} + +.border-border { + border-color: var(--color-85); } /** Taiga **/ diff --git a/sphinx/_templates/local_md_files.html b/sphinx/_templates/local_md_files.html index b73f1c6f..d668758e 100644 --- a/sphinx/_templates/local_md_files.html +++ b/sphinx/_templates/local_md_files.html @@ -13,7 +13,7 @@ {% if local_md_headings %}
-

Page Headings

+

Overview

{{ render_headings(local_md_headings) }}
{% endif %} diff --git a/sphinx/conf.py b/sphinx/conf.py index 5b55dbef..092cb4ae 100644 --- a/sphinx/conf.py +++ b/sphinx/conf.py @@ -30,20 +30,20 @@ html_static_path = ['_static'] html_sidebars = { '**': [ - 'globaltoc.html', - 'relations.html', + #'globaltoc.html', + # 'relations.html', # 'sourcelink.html', 'local_md_files.html', # Include your custom template - 'searchbox.html', + # 'searchbox.html', ] } html_theme_options = { # 'fixed_sidebar': True, + "show_prev_next": False, } -# Liste der Dateiendungen, die Sphinx verarbeiten soll: source_suffix = { '.rst': 'restructuredtext', '.md': 'markdown', @@ -59,10 +59,8 @@ extensions = [ ] autosummary_generate = True -# Optional: Zusätzliche MyST-Konfigurationen myst_enable_extensions = [ - "colon_fence", # Für erweiterte Syntax wie ::: Hinweisboxen etc. - # weitere Erweiterungen nach Bedarf + "colon_fence", ] def setup(app):