From 4452590153ca3a3c0ff768a7c461f16396c59761 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Tue, 1 Apr 2025 12:14:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- docs/assets/images/brand/svg/1.svg | 78 ++++++++++++++++++++ docs/assets/images/brand/svg/2.svg | 79 +++++++++++++++++++++ docs/assets/images/brand/svg/3.svg | 23 ++++++ docs/assets/images/brand/svg/logo-dark.svg | 24 +++++++ docs/assets/images/brand/svg/logo-light.svg | 24 +++++++ docs/other/index.md | 4 +- docs/stylesheets/extra.css | 8 +++ docs/theme/linuxmirrors.svg | 24 +++++++ docs/use/index.md | 8 +-- mkdocs.yml | 2 +- requirements.txt | 2 +- 12 files changed, 269 insertions(+), 9 deletions(-) create mode 100644 docs/assets/images/brand/svg/1.svg create mode 100644 docs/assets/images/brand/svg/2.svg create mode 100644 docs/assets/images/brand/svg/3.svg create mode 100644 docs/assets/images/brand/svg/logo-dark.svg create mode 100644 docs/assets/images/brand/svg/logo-light.svg create mode 100644 docs/theme/linuxmirrors.svg diff --git a/README.md b/README.md index 15dbc1d..dc1f529 100644 --- a/README.md +++ b/README.md @@ -134,4 +134,4 @@ Copyright © 2025, [SuperManito](https://github.com/SuperManito). Released under -__如果您觉得这个项目不错对您有所帮助的话,方便在右上角给颗 ⭐ 并分享给更多的朋友吗?__ +__如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 ⭐ 并分享给更多的朋友。__ diff --git a/docs/assets/images/brand/svg/1.svg b/docs/assets/images/brand/svg/1.svg new file mode 100644 index 0000000..c2fd8e5 --- /dev/null +++ b/docs/assets/images/brand/svg/1.svg @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/assets/images/brand/svg/2.svg b/docs/assets/images/brand/svg/2.svg new file mode 100644 index 0000000..6858386 --- /dev/null +++ b/docs/assets/images/brand/svg/2.svg @@ -0,0 +1,79 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/docs/assets/images/brand/svg/3.svg b/docs/assets/images/brand/svg/3.svg new file mode 100644 index 0000000..62ef2c6 --- /dev/null +++ b/docs/assets/images/brand/svg/3.svg @@ -0,0 +1,23 @@ + + + + + \ No newline at end of file diff --git a/docs/assets/images/brand/svg/logo-dark.svg b/docs/assets/images/brand/svg/logo-dark.svg new file mode 100644 index 0000000..12d0684 --- /dev/null +++ b/docs/assets/images/brand/svg/logo-dark.svg @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/docs/assets/images/brand/svg/logo-light.svg b/docs/assets/images/brand/svg/logo-light.svg new file mode 100644 index 0000000..0bf2554 --- /dev/null +++ b/docs/assets/images/brand/svg/logo-light.svg @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/docs/other/index.md b/docs/other/index.md index 838d2fa..034f5c9 100644 --- a/docs/other/index.md +++ b/docs/other/index.md @@ -5,7 +5,7 @@ hide: - footer --- -> 如果您觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友 :octicons-heart-fill-24:{ .heart style="color: red" } +> 如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友 :octicons-heart-fill-24:{ .heart style="color: red" } ## :fontawesome-brands-docker:{style="color: #086dd7"} Docker 安装脚本 @@ -48,7 +48,7 @@ hide: -=== ":octicons-globe-16: 官网(推荐)" +=== ":linuxmirrors: 官网(推荐)" ``` bash bash <(curl -sSL https://linuxmirrors.cn/docker.sh) diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index 1e23904..4ef312e 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -24,6 +24,14 @@ background-color: hsla(var(--md-hue), 15%, 9%, 0.33); } +[data-md-color-scheme="default"] .md-logo img { + content: url(/assets/images/brand/svg/logo-light.svg); +} + +[data-md-color-scheme="slate"] .md-logo img { + content: url(/assets/images/brand/svg/logo-dark.svg); +} + @font-face { font-family: 'SF Mono'; src: url('./fonts/SF-Mono-Regular.otf'); diff --git a/docs/theme/linuxmirrors.svg b/docs/theme/linuxmirrors.svg new file mode 100644 index 0000000..90ab4f2 --- /dev/null +++ b/docs/theme/linuxmirrors.svg @@ -0,0 +1,24 @@ + + + + + \ No newline at end of file diff --git a/docs/use/index.md b/docs/use/index.md index 8103e2a..4810fd3 100644 --- a/docs/use/index.md +++ b/docs/use/index.md @@ -4,7 +4,7 @@ hide: - footer --- -> 如果您觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友 :octicons-heart-fill-24:{ .heart style="color: red" } +> 如果觉得这个项目不错对您有所帮助的话,请点击仓库右上角的 Star 并分享给更多的朋友 :octicons-heart-fill-24:{ .heart style="color: red" } ## 一键执行命令 @@ -12,7 +12,7 @@ hide: !!! quote "" - === ":octicons-globe-16: 官网(推荐)" + === ":linuxmirrors: 官网(推荐)" ``` bash bash <(curl -sSL https://linuxmirrors.cn/main.sh) @@ -40,7 +40,7 @@ hide: !!! quote "" - === ":octicons-globe-16: 官网(推荐)" + === ":linuxmirrors: 官网(推荐)" ``` bash bash <(curl -sSL https://linuxmirrors.cn/main.sh) --abroad # (1)! @@ -76,7 +76,7 @@ hide: !!! quote "" - === ":octicons-globe-16: 官网(推荐)" + === ":linuxmirrors: 官网(推荐)" ``` bash bash <(curl -sSL https://linuxmirrors.cn/main.sh) --edu # (1)! diff --git a/mkdocs.yml b/mkdocs.yml index 90298cf..5f3b8c2 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -14,7 +14,7 @@ extra_css: - stylesheets/extra.css theme: - logo: assets/images/logo.png + logo: assets/images/brand/svg/logo-light.svg name: material custom_dir: docs/theme language: zh diff --git a/requirements.txt b/requirements.txt index ef97c5b..1841eba 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -mkdocs-material==9.6.9 +mkdocs-material==9.6.10 mkdocs-glightbox==0.4.0 mkdocs-exclude-search==0.6.6 \ No newline at end of file