From 4f84fdc48d59f5ffb40a2b918c51f45422ba541d Mon Sep 17 00:00:00 2001 From: wenzexu Date: Sun, 9 Jun 2024 18:18:41 +1000 Subject: [PATCH] chore: Update landing page logo and favicon --- Overrides/assets/favicon-d-212121-doc.svg | 1 + Overrides/assets/favicon-w-ffffff-doc.svg | 1 + {docs => Overrides}/javascripts/katex.js | 0 Overrides/partials/logo.html | 25 +++++++++++++ Overrides/stylesheets/extra.css | 44 +++++++++++++++++++++++ build | 0 docs/assets/favicon-faded-8.svg | 1 - docs/assets/favicon-white-background.svg | 1 - docs/stylesheets/extra.css | 8 ----- mkdocs.yml | 12 +++++-- requirements.txt | 3 +- 11 files changed, 82 insertions(+), 14 deletions(-) create mode 100644 Overrides/assets/favicon-d-212121-doc.svg create mode 100644 Overrides/assets/favicon-w-ffffff-doc.svg rename {docs => Overrides}/javascripts/katex.js (100%) create mode 100644 Overrides/partials/logo.html create mode 100644 Overrides/stylesheets/extra.css create mode 100644 build delete mode 100644 docs/assets/favicon-faded-8.svg delete mode 100644 docs/assets/favicon-white-background.svg delete mode 100644 docs/stylesheets/extra.css diff --git a/Overrides/assets/favicon-d-212121-doc.svg b/Overrides/assets/favicon-d-212121-doc.svg new file mode 100644 index 0000000..9feeebe --- /dev/null +++ b/Overrides/assets/favicon-d-212121-doc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/Overrides/assets/favicon-w-ffffff-doc.svg b/Overrides/assets/favicon-w-ffffff-doc.svg new file mode 100644 index 0000000..28e30a3 --- /dev/null +++ b/Overrides/assets/favicon-w-ffffff-doc.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/javascripts/katex.js b/Overrides/javascripts/katex.js similarity index 100% rename from docs/javascripts/katex.js rename to Overrides/javascripts/katex.js diff --git a/Overrides/partials/logo.html b/Overrides/partials/logo.html new file mode 100644 index 0000000..7439b41 --- /dev/null +++ b/Overrides/partials/logo.html @@ -0,0 +1,25 @@ + + + +logo +logo \ No newline at end of file diff --git a/Overrides/stylesheets/extra.css b/Overrides/stylesheets/extra.css new file mode 100644 index 0000000..e3c5f9e --- /dev/null +++ b/Overrides/stylesheets/extra.css @@ -0,0 +1,44 @@ +.md-header__button.md-logo { + margin: 0; + padding: 0; +} +.md-header__button.md-logo img, .md-header__button.md-logo svg { + height: 2.5rem; + width: 2.5rem; +} + +#logo_light_mode { +display: var(--md-footer-logo-light-mode); +} +#logo_dark_mode { +display: var(--md-footer-logo-dark-mode); +} + +[data-md-color-scheme="default"] { +--md-footer-logo-dark-mode: none; +--md-footer-logo-light-mode: block; +} +[data-md-color-scheme="slate"] { +--md-footer-logo-dark-mode: block; +--md-footer-logo-light-mode: none; +--md-primary-fg-color: rgba(18, 19, 23, 0.8); +--md-header-bg-color: rgba(18, 19, 23, 0.8); +} + +[data-md-color-primary="black"] .md-header { +background-color: var(--md-header-bg-color); +} +.md-header { +box-shadow: none; +transition: none; +backdrop-filter: saturate(180%) blur(20px); +-webkit-backdrop-filter: saturate(180%) blur(20px); +background-color: var(--md-header-bg-color); +} +.md-tabs { +box-shadow: none; +transition: none; +backdrop-filter: saturate(180%) blur(20px); +-webkit-backdrop-filter: saturate(180%) blur(20px); +background-color: var(--md-header-bg-color); +} \ No newline at end of file diff --git a/build b/build new file mode 100644 index 0000000..e69de29 diff --git a/docs/assets/favicon-faded-8.svg b/docs/assets/favicon-faded-8.svg deleted file mode 100644 index 79e2552..0000000 --- a/docs/assets/favicon-faded-8.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/assets/favicon-white-background.svg b/docs/assets/favicon-white-background.svg deleted file mode 100644 index 5280187..0000000 --- a/docs/assets/favicon-white-background.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css deleted file mode 100644 index cff7fed..0000000 --- a/docs/stylesheets/extra.css +++ /dev/null @@ -1,8 +0,0 @@ -.md-header__button.md-logo { - margin: 0; - padding: 0; - } - .md-header__button.md-logo img, .md-header__button.md-logo svg { - height: 2.5rem; - width: 2.5rem; - } \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml index 3e5612b..b2b7deb 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,12 +1,15 @@ site_name: Awesome Scripts site_author: ricolxwz +site_url: https://awesome-scripts.ricolxwz.de/ copyright: Copyright © 2024 ricolxwz site_description: A collection of useful scripts for daily use repo_url: https://github.com/ricolxwz/awesome-scripts repo_name: ricolxwz/awesome-scripts theme: name: material - logo: assets/favicon-faded-8.svg + custom_dir: Overrides + logo_light_mode: assets/favicon-d-212121-doc.svg + logo_dark_mode: assets/favicon-w-ffffff-doc.svg favicon: assets/favicon-white-background.svg language: zh features: @@ -15,6 +18,7 @@ theme: - content.code.select - content.tabs.link - content.footnote.tooltips + - content.tooltips # - header.autohide # - announce.dismiss # - navigation.footer @@ -34,20 +38,20 @@ theme: name: Switch to light mode - media: "(prefers-color-scheme: light)" scheme: default - primary: indigo + primary: white accent: indigo toggle: icon: material/brightness-7 name: Switch to dark mode - media: "(prefers-color-scheme: dark)" scheme: slate - primary: black accent: indigo toggle: icon: material/brightness-4 name: Switch to system preference icon: repo: fontawesome/brands/github-alt + annotation: material/star-four-points-circle admonition: note: octicons/tag-16 abstract: octicons/checklist-16 @@ -89,6 +93,7 @@ markdown_extensions: - pymdownx.tilde - pymdownx.magiclink - admonition + - abbr - attr_list - md_in_html - footnotes @@ -112,6 +117,7 @@ markdown_extensions: format: !!python/name:pymdownx.superfences.fence_code_format plugins: - search + - open-in-new-tab - i18n: docs_structure: suffix fallback_to_default: true diff --git a/requirements.txt b/requirements.txt index 7832562..4903a4e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,3 @@ mkdocs-material -mkdocs-static-i18n \ No newline at end of file +mkdocs-static-i18n +mkdocs-open-in-new-tab \ No newline at end of file