From 08930181e9e1ac55b0a9da50e238144ede473766 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Tue, 24 Dec 2024 16:05:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=AD=A3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 20 +++++++++++++++++++- docs/stylesheets/extra.css | 4 ++-- docs/theme/partials/toc.html | 2 +- docs/use/index.md | 1 - mkdocs.yml | 15 +++++++-------- 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/.gitignore b/.gitignore index fa150874..dcf61e56 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,21 @@ -.idea/ .DS_Store site/ +node_modules + +# local env files +.env.local +.env.*.local + +# Log files +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* + +# Editor directories and files +.idea +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css index aef4514c..f9de204f 100644 --- a/docs/stylesheets/extra.css +++ b/docs/stylesheets/extra.css @@ -12,7 +12,7 @@ } [data-md-color-scheme='slate'] .md-header { - background-color: hsla(240, 4%, 11%, 0.33); + background-color: hsla(var(--md-hue), 15%, 9%, 0.33); } .md-tabs { @@ -20,7 +20,7 @@ } [data-md-color-scheme='slate'] .md-tabs { - background-color: hsla(240, 4%, 11%, 0.33); + background-color: hsla(var(--md-hue), 15%, 9%, 0.33); } @font-face { diff --git a/docs/theme/partials/toc.html b/docs/theme/partials/toc.html index 157e70f1..6923b109 100644 --- a/docs/theme/partials/toc.html +++ b/docs/theme/partials/toc.html @@ -22,7 +22,7 @@ <img src="/assets/images/sponsor/arcadia-dark.png#only-dark" alt="Arcadia 一站式代码运维平台" style="width: 60%" /> </a> <a href="/sponsor/" target="_blank" class="sponsor-item"> - <span class="sponsor-item" style="font-size: 0.6rem"> + <span style="font-size: 0.6rem"> <strong>成为赞助商</strong> </span> </a> diff --git a/docs/use/index.md b/docs/use/index.md index b0919c76..bcf0f397 100644 --- a/docs/use/index.md +++ b/docs/use/index.md @@ -482,7 +482,6 @@ hide: --protocol http \ --use-intranet-source false \ --install-epel true \ - --close-firewall true \ --backup true \ --upgrade-software false \ --clean-cache false \ diff --git a/mkdocs.yml b/mkdocs.yml index 9216a7e8..87995ac4 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -3,6 +3,10 @@ repo_name: GitHub repo_url: https://github.com/SuperManito/LinuxMirrors edit_uri: edit/main/docs/ copyright: 'Copyright © 2024 <a href="https://github.com/SuperManito" target="_blank"> SuperManito</a> <a href="https://www.netlify.com" target="_blank"><img height="64" width="64" src="/assets/images/icon/netlify.svg" style="vertical-align: -0.6em"></a>' + +extra_css: + - stylesheets/extra.css + theme: logo: assets/images/logo.png name: material @@ -36,18 +40,16 @@ theme: - media: "(prefers-color-scheme: light)" scheme: default primary: white - accent: white toggle: icon: octicons/sun-16 - name: 亮色主题 + name: 亮色模式 # Palette toggle for dark mode - media: "(prefers-color-scheme: dark)" scheme: slate - primary: blue - accent: blue + primary: black toggle: icon: octicons/moon-16 - name: 深色主题 + name: 暗黑模式 features: - header.autohide - navigation.top @@ -88,8 +90,6 @@ extra: data: 0 note: >- 感谢反馈!使用<a href="https://github.com/SuperManito/LinuxMirrors/issues" target="_blank" rel="noopener">反馈表单</a></br>帮助我们改进此页面。 -extra_css: - - stylesheets/extra.css markdown_extensions: - toc: permalink: "#" @@ -141,7 +141,6 @@ plugins: exclude: - mirrors.md - tags - - glightbox nav: - "介绍": index.md - "使用方法": use/index.md