Optimized sphinx theme

This commit is contained in:
Kevin Veen-Birkenbach 2025-03-16 20:35:01 +01:00
parent c9c716e5fe
commit b6eb9a0dd3
No known key found for this signature in database
GPG Key ID: 44D8F11FD62F878E
4 changed files with 26 additions and 14 deletions

View File

@ -676,6 +676,7 @@ navigation:
{% endif %} {% endif %}
{% endif %} {% endif %}
{% endif %} {% endif %}
- name: Support Us - name: Support Us
description: "Discover all the ways you can support our work." description: "Discover all the ways you can support our work."
icon: icon:
@ -701,13 +702,17 @@ navigation:
icon: icon:
class: fa-brands fa-github class: fa-brands fa-github
url: https://s.veen.world/githubsponsors 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. description: Access our comprehensive documentation and support resources to help you get the most out of the software.
icon: icon:
class: fas fa-book class: fas fa-book
url: https://{{domains.sphinx}} url: https://{{domains.sphinx}}
{% endif %} {% endif %}
- name: Imprint - name: Imprint
description: Check out the imprint information description: Check out the imprint information
icon: icon:

View File

@ -602,10 +602,19 @@ html[native-dark-active] my-app button, button {
--card-header-accent: var(--color-85); /* Accent color in card headers */ --card-header-accent: var(--color-85); /* Accent color in card headers */
/* Dropdown Menus */ /* Dropdown Menus */
--dropdown-item-hover-bg: var(--color-05); /* Hover background: very dark */ --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-hover-color: var(--color-60); /* Hover text: a bit lighter */
--dropdown-item-color: var(--color-70); /* Regular dropdown item text */ --dropdown-item-color: var(--color-70); /* Regular dropdown item text */
--dropdown-item-active-color: var(--color-99);/* Active state: very light (white) */ --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 **/ /** Taiga **/

View File

@ -13,7 +13,7 @@
{% if local_md_headings %} {% if local_md_headings %}
<div class="local-md-headings"> <div class="local-md-headings">
<h3>Page Headings</h3> <h3>Overview</h3>
{{ render_headings(local_md_headings) }} {{ render_headings(local_md_headings) }}
</div> </div>
{% endif %} {% endif %}

View File

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