From bbb031e609546a756462572f786afb9f4d6f14e9 Mon Sep 17 00:00:00 2001 From: SuperManito <68613938+SuperManito@users.noreply.github.com> Date: Tue, 9 May 2023 22:04:55 +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 --- docs/community/index.md | 8 +++++ docs/index.md | 5 ++- docs/{mirrors.md => mirrors/index.md} | 2 ++ docs/other/index.md | 2 ++ docs/theme/partials/comments.html | 49 +++++++++++++++++++++++++++ docs/{help/index.md => use/help.md} | 5 --- docs/use/index.md | 5 +++ mkdocs.yml | 23 +++++++++++-- 8 files changed, 90 insertions(+), 9 deletions(-) create mode 100644 docs/community/index.md rename docs/{mirrors.md => mirrors/index.md} (99%) create mode 100644 docs/theme/partials/comments.html rename docs/{help/index.md => use/help.md} (98%) diff --git a/docs/community/index.md b/docs/community/index.md new file mode 100644 index 0000000..45cbc82 --- /dev/null +++ b/docs/community/index.md @@ -0,0 +1,8 @@ +--- +comments: true +hide: + - navigation + - toc + - feedback + - footer +--- diff --git a/docs/index.md b/docs/index.md index 3dd4885..b208b76 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,8 +1,11 @@ --- +title: LinuxMirrors · 让换源更简单 +comments: true hide: - navigation - toc -title: LinuxMirrors · 让换源更简单 + - feedback + - footer --- ![](/assets/images/logo.png) diff --git a/docs/mirrors.md b/docs/mirrors/index.md similarity index 99% rename from docs/mirrors.md rename to docs/mirrors/index.md index 7d54f0d..2e6fec4 100644 --- a/docs/mirrors.md +++ b/docs/mirrors/index.md @@ -2,6 +2,8 @@ hide: - navigation - toc + - feedback + - footer --- ## 中国大陆 :flag-CN: diff --git a/docs/other/index.md b/docs/other/index.md index 5803094..161aca4 100644 --- a/docs/other/index.md +++ b/docs/other/index.md @@ -2,6 +2,8 @@ hide: - navigation - toc + - feedback + - footer --- ## :fontawesome-brands-docker: Docker 一键安装脚本 diff --git a/docs/theme/partials/comments.html b/docs/theme/partials/comments.html new file mode 100644 index 0000000..4041fcb --- /dev/null +++ b/docs/theme/partials/comments.html @@ -0,0 +1,49 @@ +{% if page.meta.comments %} +

{{ lang.t("meta.comments") }}

+ + + + +{% endif %} diff --git a/docs/help/index.md b/docs/use/help.md similarity index 98% rename from docs/help/index.md rename to docs/use/help.md index 92421ae..6d62af6 100644 --- a/docs/help/index.md +++ b/docs/use/help.md @@ -1,8 +1,3 @@ ---- -hide: - - navigation ---- - ## 关于报错 Command not found - 如果提示 `Command 'curl' not found` 则说明当前未安装 `curl` 软件包 diff --git a/docs/use/index.md b/docs/use/index.md index 4327e33..b5c954b 100644 --- a/docs/use/index.md +++ b/docs/use/index.md @@ -1,3 +1,8 @@ +--- +hide: + - feedback +--- + ## 执行命令 ### 国内使用(默认) diff --git a/mkdocs.yml b/mkdocs.yml index a8914f2..d10732d 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -64,6 +64,22 @@ extra: link: https://gitee.com/SuperManito/LinuxMirrors - icon: fontawesome/brands/github link: https://github.com/SuperManito/LinuxMirrors + analytics: + provider: google + property: G-WG7T40F7YP + feedback: + title: 此页面上的内容对你有帮助吗? + ratings: + - icon: material/thumb-up-outline + name: This page was helpful + data: 1 + note: >- + 感谢反馈! + - icon: material/thumb-down-outline + name: This page could be improved + data: 0 + note: >- + 感谢反馈!使用反馈表单
帮助我们改进此页面。 extra_css: - stylesheets/extra.css markdown_extensions: @@ -119,12 +135,13 @@ plugins: - glightbox nav: - '介绍': index.md - - '软件源': mirrors.md + - '软件源': mirrors/index.md - '使用方法': - '使用方法': use/index.md + - '常见问题': use/help.md - '执行流程': use/execution-flow.md - '未启用源': use/not-enabled.md - '高级用法': - '命令选项': use/command-options.md - - '常见问题': help/index.md - - '其它脚本': other/index.md + - '其它工具': other/index.md + - '社区': community/index.md