From 069b524c1774e5a8ca9d0786e90fff3c424a8c6d Mon Sep 17 00:00:00 2001 From: Yuhui Huang Date: Wed, 4 May 2022 23:58:35 +0800 Subject: [PATCH] refactor: reorganize files --- .drone.yml | 4 +- _config.yml | 21 +++++++ _docs/about-questions.md | 8 +++ _docs/contribution.md | 2 +- {_docs => _launcher}/authlib-injector.md | 2 +- {_docs => _launcher}/auto-installing.md | 4 +- {_docs => _launcher}/datapack.md | 4 +- .../global-version-isolation.md | 4 +- {_docs => _launcher}/install_optifine.md | 7 +++ {_docs => _launcher}/offline-skin.md | 4 +- _layouts/download.html | 57 +++++++++++++++++++ {_docs => _modpack}/modpack-in-java.md | 9 ++- {_docs => _modpack}/serverpack.md | 4 +- {_docs => _modpack}/serverpack2.md | 7 +++ {_docs => _multiplayer}/multiplayer-faq.md | 7 +++ {_docs => _multiplayer}/multiplayer-help.md | 4 +- .../multiplayer-symmetric.md | 4 +- {_docs => _multiplayer}/multiplayer.md | 4 +- _pages/docs.md | 4 +- _pages/launcher.md | 8 +++ _pages/modpack.md | 8 +++ _pages/multiplayer.md | 8 +++ index.markdown | 7 +++ 23 files changed, 169 insertions(+), 22 deletions(-) rename {_docs => _launcher}/authlib-injector.md (97%) rename {_docs => _launcher}/auto-installing.md (97%) rename {_docs => _launcher}/datapack.md (96%) rename {_docs => _launcher}/global-version-isolation.md (95%) rename {_docs => _launcher}/install_optifine.md (95%) rename {_docs => _launcher}/offline-skin.md (98%) create mode 100644 _layouts/download.html rename {_docs => _modpack}/modpack-in-java.md (96%) rename {_docs => _modpack}/serverpack.md (97%) rename {_docs => _modpack}/serverpack2.md (97%) rename {_docs => _multiplayer}/multiplayer-faq.md (98%) rename {_docs => _multiplayer}/multiplayer-help.md (98%) rename {_docs => _multiplayer}/multiplayer-symmetric.md (99%) rename {_docs => _multiplayer}/multiplayer.md (92%) create mode 100644 _pages/launcher.md create mode 100644 _pages/modpack.md create mode 100644 _pages/multiplayer.md diff --git a/.drone.yml b/.drone.yml index 3a6c237..a388f1c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -22,11 +22,13 @@ steps: path: /drone/src/_site - name: cache path: /drone/src/.jekyll-cache + when: + branch: [main] volumes: - name: dist host: - path: /home/ubuntu/docs.hmcl.net/site + path: /home/ubuntu/docs.hmcl.net/www - name: cache host: path: /home/ubuntu/docs.hmcl.net/cache diff --git a/_config.yml b/_config.yml index 5391779..eab9871 100644 --- a/_config.yml +++ b/_config.yml @@ -52,6 +52,18 @@ collections: output: true permalink: /:collection/:path/ + launcher: + output: true + permalink: /:collection/:path/ + + modpack: + output: true + permalink: /:collection/:path/ + + multiplayer: + output: true + permalink: /:collection/:path/ + defaults: - scope: path: "assets/img" @@ -64,6 +76,15 @@ defaults: - scope: path: "_docs" type: docs + - scope: + path: "_launcher" + type: launcher + - scope: + path: "_modpack" + type: modpack + - scope: + path: "_multiplayer" + type: multiplayer values: layout: single read_time: false diff --git a/_docs/about-questions.md b/_docs/about-questions.md index 86e375f..2eaa87e 100644 --- a/_docs/about-questions.md +++ b/_docs/about-questions.md @@ -1,3 +1,11 @@ +--- +title: "各大问题集合" +permalink: /faq.html +date: 2021-10-09 23:18:02 +0800 +categories: 启动器 +toc: true +--- + > 本文由 LIiston 编写。 # 各大问题集合 diff --git a/_docs/contribution.md b/_docs/contribution.md index e1dd852..eee3194 100644 --- a/_docs/contribution.md +++ b/_docs/contribution.md @@ -1,6 +1,6 @@ --- title: "为 HMCL 帮助文档出一份力" -permalink: /help/contribution.html +permalink: /contribution.html date: 2021-10-09 23:18:02 +0800 categories: HMCL toc: true diff --git a/_docs/authlib-injector.md b/_launcher/authlib-injector.md similarity index 97% rename from _docs/authlib-injector.md rename to _launcher/authlib-injector.md index fa85830..7419f18 100644 --- a/_docs/authlib-injector.md +++ b/_launcher/authlib-injector.md @@ -2,7 +2,7 @@ title: "Authlib-Injector 服务器设置指南" permalink: /launcher/authlib-injector.html date: 2021-08-22 23:18:02 +0800 -categories: HMCL +categories: 启动器 toc: true --- diff --git a/_docs/auto-installing.md b/_launcher/auto-installing.md similarity index 97% rename from _docs/auto-installing.md rename to _launcher/auto-installing.md index f635afd..fe59e8c 100644 --- a/_docs/auto-installing.md +++ b/_launcher/auto-installing.md @@ -1,8 +1,8 @@ --- title: "自动安装与模组下载简介" -permalink: /help/launcher/auto-installing.html +permalink: /launcher/auto-installing.html date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 启动器 toc: true --- diff --git a/_docs/datapack.md b/_launcher/datapack.md similarity index 96% rename from _docs/datapack.md rename to _launcher/datapack.md index 6313177..a9f8e77 100644 --- a/_docs/datapack.md +++ b/_launcher/datapack.md @@ -1,8 +1,8 @@ --- title: "数据包制作指南" -permalink: /help/launcher/datapack.html +permalink: /launcher/datapack.html date: 2021-08-22 23:18:02 +0800 -categories: HMCL +categories: 启动器 toc: true --- diff --git a/_docs/global-version-isolation.md b/_launcher/global-version-isolation.md similarity index 95% rename from _docs/global-version-isolation.md rename to _launcher/global-version-isolation.md index 86f69cb..c33322b 100644 --- a/_docs/global-version-isolation.md +++ b/_launcher/global-version-isolation.md @@ -1,8 +1,8 @@ --- title: "全局版本隔离" -permalink: /help/launcher/isolation.html +permalink: /launcher/isolation.html date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 启动器 toc: true --- > 本文由 LIPiston 编写。 diff --git a/_docs/install_optifine.md b/_launcher/install_optifine.md similarity index 95% rename from _docs/install_optifine.md rename to _launcher/install_optifine.md index bda9544..1b0e9f2 100644 --- a/_docs/install_optifine.md +++ b/_launcher/install_optifine.md @@ -1,3 +1,10 @@ +--- +title: "光影和Optifine" +permalink: /launcher/optifine.html +date: 2021-10-09 23:18:02 +0800 +categories: 启动器 +toc: true +--- # 光影和Optifine ## 安装Optifine diff --git a/_docs/offline-skin.md b/_launcher/offline-skin.md similarity index 98% rename from _docs/offline-skin.md rename to _launcher/offline-skin.md index 0250995..4e8aeee 100644 --- a/_docs/offline-skin.md +++ b/_launcher/offline-skin.md @@ -1,8 +1,8 @@ --- title: "离线模式下更换皮肤" -permalink: /help/launcher/offline-skin.html +permalink: /launcher/offline-skin.html date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 启动器 toc: true --- diff --git a/_layouts/download.html b/_layouts/download.html new file mode 100644 index 0000000..f561272 --- /dev/null +++ b/_layouts/download.html @@ -0,0 +1,57 @@ +--- +--- + + + + + + {% include head.html %} + {% include head/custom.html %} + + + +{% include_cached skip-links.html %} +{% include browser-upgrade.html %} +{% include masthead.html %} + +
+ {{ content }} +
+ +
+
+ +{% if site.search == true %} +
+ {% include search/search_form.html %} +
+{% endif %} + + + +{% include scripts.html %} + + + + + + \ No newline at end of file diff --git a/_docs/modpack-in-java.md b/_modpack/modpack-in-java.md similarity index 96% rename from _docs/modpack-in-java.md rename to _modpack/modpack-in-java.md index 273920f..fad1809 100644 --- a/_docs/modpack-in-java.md +++ b/_modpack/modpack-in-java.md @@ -1,4 +1,11 @@ - # 整合包自带 Java 教程 +--- +title: "整合包自带 Java 教程" +permalink: /modpack/bundled-java.html +date: 2021-10-09 23:18:02 +0800 +categories: 整合包 +toc: true +--- +# 整合包自带 Java 教程 ## 背景 diff --git a/_docs/serverpack.md b/_modpack/serverpack.md similarity index 97% rename from _docs/serverpack.md rename to _modpack/serverpack.md index 7484d5c..1245a90 100644 --- a/_docs/serverpack.md +++ b/_modpack/serverpack.md @@ -1,8 +1,8 @@ --- title: "服务端自动更新整合包制作教程" -permalink: /help/launcher/serverpack.html +permalink: /modpack/serverpack.html date: 2021-08-22 23:18:02 +0800 -categories: HMCL +categories: 整合包 toc: true --- diff --git a/_docs/serverpack2.md b/_modpack/serverpack2.md similarity index 97% rename from _docs/serverpack2.md rename to _modpack/serverpack2.md index d71b9dc..a3ab324 100644 --- a/_docs/serverpack2.md +++ b/_modpack/serverpack2.md @@ -1,3 +1,10 @@ +--- +title: "使用HMCL启动器配置服务器客户端自动更新" +permalink: /modpack/serverpack2.html +date: 2021-08-22 23:18:02 +0800 +categories: 整合包 +toc: true +--- # **使用HMCL启动器配置服务器客户端自动更新** ## 备注 diff --git a/_docs/multiplayer-faq.md b/_multiplayer/multiplayer-faq.md similarity index 98% rename from _docs/multiplayer-faq.md rename to _multiplayer/multiplayer-faq.md index 53edd96..77f0cdd 100644 --- a/_docs/multiplayer-faq.md +++ b/_multiplayer/multiplayer-faq.md @@ -1,3 +1,10 @@ +--- +title: "HMCL 多人联机常见问题" +permalink: /multiplayer/faq.html +date: 2021-10-09 23:18:02 +0800 +categories: 多人联机 +toc: true +--- # ![](icon.png)**HMCL 多人联机常见问题** > 本篇文章由 Zkitefly 编写。 diff --git a/_docs/multiplayer-help.md b/_multiplayer/multiplayer-help.md similarity index 98% rename from _docs/multiplayer-help.md rename to _multiplayer/multiplayer-help.md index d312914..45f2ebb 100644 --- a/_docs/multiplayer-help.md +++ b/_multiplayer/multiplayer-help.md @@ -1,8 +1,8 @@ --- title: "多人联机教程" -permalink: /help/launcher/multiplayer/help.html +permalink: /multiplayer/help.html date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 多人联机 toc: true --- diff --git a/_docs/multiplayer-symmetric.md b/_multiplayer/multiplayer-symmetric.md similarity index 99% rename from _docs/multiplayer-symmetric.md rename to _multiplayer/multiplayer-symmetric.md index 1705040..b3119cd 100644 --- a/_docs/multiplayer-symmetric.md +++ b/_multiplayer/multiplayer-symmetric.md @@ -1,8 +1,8 @@ --- title: "NAT 网络检测为差的时候怎么办?" -permalink: /help/launcher/multiplayer-symmetric.html +permalink: /multiplayer/symmetric.html date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 多人联机 toc: true --- diff --git a/_docs/multiplayer.md b/_multiplayer/multiplayer.md similarity index 92% rename from _docs/multiplayer.md rename to _multiplayer/multiplayer.md index 3ceeaf1..af181e4 100644 --- a/_docs/multiplayer.md +++ b/_multiplayer/multiplayer.md @@ -1,8 +1,8 @@ --- title: "多人联机帮助" -permalink: /help/launcher/multiplayer.html +permalink: /multiplayer/ date: 2021-10-09 23:18:02 +0800 -categories: HMCL +categories: 多人联机 toc: true --- diff --git a/_pages/docs.md b/_pages/docs.md index 07f0720..4d961fc 100644 --- a/_pages/docs.md +++ b/_pages/docs.md @@ -1,8 +1,8 @@ --- title: 文档 layout: collection -permalink: /help/ -collection: help +permalink: /docs/ +collection: docs entries_layout: grid classes: wide --- \ No newline at end of file diff --git a/_pages/launcher.md b/_pages/launcher.md new file mode 100644 index 0000000..3468e63 --- /dev/null +++ b/_pages/launcher.md @@ -0,0 +1,8 @@ +--- +title: 启动器 +layout: collection +permalink: /launcher/ +collection: launcher +entries_layout: grid +classes: wide +--- \ No newline at end of file diff --git a/_pages/modpack.md b/_pages/modpack.md new file mode 100644 index 0000000..5013c3f --- /dev/null +++ b/_pages/modpack.md @@ -0,0 +1,8 @@ +--- +title: 整合包 +layout: collection +permalink: /modpack/ +collection: modpack +entries_layout: grid +classes: wide +--- \ No newline at end of file diff --git a/_pages/multiplayer.md b/_pages/multiplayer.md new file mode 100644 index 0000000..6dc25a7 --- /dev/null +++ b/_pages/multiplayer.md @@ -0,0 +1,8 @@ +--- +title: 多人联机 +layout: collection +permalink: /multiplayer/ +collection: multiplayer +entries_layout: grid +classes: wide +--- \ No newline at end of file diff --git a/index.markdown b/index.markdown index c9dd54d..ad95bfb 100644 --- a/index.markdown +++ b/index.markdown @@ -1,3 +1,10 @@ +--- +# Feel free to add content and custom Front Matter to this file. +# To modify the layout, see https://jekyllrb.com/docs/themes/#overriding-theme-defaults + +layout: download +--- + > 由 wifi-left 进行整理 # HMCL 新手导航