diff --git a/docs/stylesheets/custom.css b/docs/stylesheets/custom.css index ef6f842..6f8850e 100644 --- a/docs/stylesheets/custom.css +++ b/docs/stylesheets/custom.css @@ -1,3 +1,28 @@ +[data-md-color-primary=white] { + + --md-typeset-a-color: orange; +} + +[data-md-color-accent=amber] { + --md-accent-fg-color: #ffaa28;; + --md-accent-fg-color--transparent: #ffaa001a; + --md-accent-bg-color: #000000de; + --md-accent-bg-color--light: #0000008a; +} + +[data-md-color-scheme=slate][data-md-color-primary=black] { + --md-typeset-a-color: orange; +} + .md-footer-meta__inner { display: none; } + +@media (max-width: 768px) { /* Adjust the breakpoint as needed */ + .md-main div[class^="language-"] { + /* padding: 0 1rem; Applies only for devices with a width of 768px or less */ + margin-left: 0; + margin-right: 0; + } + } + \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 54b4219..e08d130 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -15,20 +15,20 @@ theme: - content.code.copy - content.code.select # - content.footnote.tooltips - # - content.tabs.link + - content.tabs.link - content.tooltips # - header.autohide # - navigation.expand - navigation.footer - navigation.indexes # - navigation.instant - # - navigation.instant.prefetch + - navigation.instant.prefetch # - navigation.instant.progress # - navigation.prune - navigation.sections - navigation.path - navigation.tabs - # - navigation.tabs.sticky + - navigation.tabs.sticky - navigation.top - navigation.tracking - search.highlight @@ -44,14 +44,14 @@ theme: - media: "(prefers-color-scheme: light)" scheme: default primary: white - accent: indigo + accent: amber toggle: icon: material/weather-night name: Switch to dark mode - media: "(prefers-color-scheme: dark)" scheme: slate primary: black - accent: indigo + accent: amber toggle: icon: material/weather-sunny name: Switch to system preference @@ -74,6 +74,29 @@ plugins: - minify: minify_html: true + - mkdocstrings: + handlers: + python: + options: + extensions: + - griffe_typingdoc + show_root_heading: true + show_if_no_docstring: true + preload_modules: + - httpx + - starlette + inherited_members: true + members_order: source + separate_signature: true + unwrap_annotated: true + filters: + - "!^_" + merge_init_into_class: true + docstring_section_style: spacy + signature_crossrefs: true + show_symbol_type_heading: true + show_symbol_type_toc: true + # Additional configuration extra: generator: false