chore(docs/*, static/*, templates/*): reformat using ruff (#21)

mk-personal-profile
Christian Merten 2 months ago committed by GitHub
parent 1f7f33e446
commit aaa1324da9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -4,43 +4,43 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html # https://www.sphinx-doc.org/en/master/usage/configuration.html
from dataclasses import asdict from dataclasses import asdict
from sphinxawesome_theme import ThemeOptions
from sphinxawesome_theme import ThemeOptions
# -- Project information ------------------------------------------------------- # -- Project information -------------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information # https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Kompass' project = "Kompass"
release = '2.0' release = "2.0"
author = 'The Kompass Team' author = "The Kompass Team"
copyright = f'2025, {author}' copyright = f"2025, {author}"
# -- General configuration ----------------------------------------------------- # -- General configuration -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [] extensions = []
templates_path = ['_templates'] templates_path = ["_templates"]
exclude_patterns = [] exclude_patterns = []
language = 'de' language = "de"
# -- Options for HTML output --------------------------------------------------- # -- Options for HTML output ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output # https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
html_theme = 'sphinxawesome_theme' html_theme = "sphinxawesome_theme"
html_static_path = ['_static'] html_static_path = ["_static"]
# -- Sphinxawsome-theme options ------------------------------------------------ # -- Sphinxawsome-theme options ------------------------------------------------
# https://sphinxawesome.xyz/how-to/configure/ # https://sphinxawesome.xyz/how-to/configure/
html_logo = "_static/favicon.svg" html_logo = "_static/favicon.svg"
html_favicon = "_static/favicon.svg" html_favicon = "_static/favicon.svg"
html_sidebars = { html_sidebars = {
"about": ["sidebar_main_nav_links.html"], "about": ["sidebar_main_nav_links.html"],
# "changelog": ["sidebar_main_nav_links.html"], # "changelog": ["sidebar_main_nav_links.html"],
} }
# Code blocks color scheme # Code blocks color scheme
@ -50,14 +50,14 @@ pygments_style_dark = "emacs"
# Could be directly in html_theme_options, but this way it has type hints # Could be directly in html_theme_options, but this way it has type hints
# from sphinxawesome_theme # from sphinxawesome_theme
theme_options = ThemeOptions( theme_options = ThemeOptions(
show_prev_next=True, show_prev_next=True,
show_breadcrumbs=True, show_breadcrumbs=True,
main_nav_links={ main_nav_links={
"Docs": "index", "Docs": "index",
"About": "about", "About": "about",
# "Changelog": "changelog" # "Changelog": "changelog"
}, },
show_scrolltop=True, show_scrolltop=True,
) )
html_theme_options = asdict(theme_options) html_theme_options = asdict(theme_options)

@ -82,4 +82,3 @@ If you want to contribute code, please follow the inital setup steps in the :ref
- linting - linting
- (auto) formatting - (auto) formatting
- reliable tests via ci/cd pipeline - reliable tests via ci/cd pipeline

@ -38,5 +38,3 @@ Structure
.. seealso:: .. seealso::
:ref:`Contributing #Documentation <development_manual/contributing/documentation>` :ref:`Contributing #Documentation <development_manual/contributing/documentation>`

@ -39,4 +39,3 @@ Development Documentation
:titlesonly: :titlesonly:
development_manual/index development_manual/index

@ -52,4 +52,3 @@ Im Nachhinein trägst du deine Ausgaben ein, lädst Belege hoch und reichst dein
.. _anlegen: https://jdav-hd.de/kompassmembers/freizeit/add/ .. _anlegen: https://jdav-hd.de/kompassmembers/freizeit/add/
.. _Teilnehmer\*innen: https://jdav-hd.de/kompassmembers/member/ .. _Teilnehmer\*innen: https://jdav-hd.de/kompassmembers/member/

@ -33,4 +33,3 @@ $icon-add: "\e603";
$icon-add3: "\e604"; $icon-add3: "\e604";
$icon-expand: "\e605"; $icon-expand: "\e605";
$icon-checkbox: "\e606"; $icon-checkbox: "\e606";

@ -123,4 +123,3 @@
.icon-checkbox:before { .icon-checkbox:before {
content: "\e606"; content: "\e606";
} }

@ -296,7 +296,7 @@ var QRCode;
arguments[4] *= factor; arguments[4] *= factor;
} }
drawImage.apply(this, arguments); drawImage.apply(this, arguments);
}; };
} }

@ -13,4 +13,3 @@
{{block.super}} {{block.super}}
{% endblock %} {% endblock %}

Loading…
Cancel
Save