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 %}
- 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:

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 */
/* 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 **/

View File

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

View File

@ -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):