From 73c09b154fc4e88952abff71f185f7eea416885b Mon Sep 17 00:00:00 2001 From: Yuhui Huang Date: Wed, 4 May 2022 18:29:47 +0800 Subject: [PATCH] refactor: jekyll --- .drone.yml | 21 ++++ .gitignore | 7 ++ 404.html | 25 +++++ Gemfile | 37 +++++++ _config.yml | 102 ++++++++++++++++++ .../about-questions.md | 0 .../authlib-injector.md | 2 +- .../auto-installing.md | 0 contribution.md => _docs/contribution.md | 0 datapack.md => _docs/datapack.md | 0 .../global-version-isolation.md | 0 .../install_optifine.md | 0 .../modpack-in-java.md | 0 .../multiplayer-faq.md | 0 .../multiplayer-help.md | 0 .../multiplayer-symmetric.md | 0 multiplayer.md => _docs/multiplayer.md | 0 offline-skin.md => _docs/offline-skin.md | 0 serverpack.md => _docs/serverpack.md | 0 serverpack2.md => _docs/serverpack2.md | 0 _includes/footer.html | 28 +++++ _includes/head/custom.html | 1 + _pages/docs.md | 8 ++ favicon.ico | Bin 0 -> 4286 bytes help-index.md => index.markdown | 0 25 files changed, 230 insertions(+), 1 deletion(-) create mode 100644 .drone.yml create mode 100644 .gitignore create mode 100644 404.html create mode 100644 Gemfile create mode 100644 _config.yml rename about-questions.md => _docs/about-questions.md (100%) rename authlib-injector.md => _docs/authlib-injector.md (93%) rename auto-installing.md => _docs/auto-installing.md (100%) rename contribution.md => _docs/contribution.md (100%) rename datapack.md => _docs/datapack.md (100%) rename Global-version-isolation.md => _docs/global-version-isolation.md (100%) rename install_optifine.md => _docs/install_optifine.md (100%) rename modpack-in-java.md => _docs/modpack-in-java.md (100%) rename multiplayer-faq.md => _docs/multiplayer-faq.md (100%) rename multiplayer-help.md => _docs/multiplayer-help.md (100%) rename multiplayer-symmetric.md => _docs/multiplayer-symmetric.md (100%) rename multiplayer.md => _docs/multiplayer.md (100%) rename offline-skin.md => _docs/offline-skin.md (100%) rename serverpack.md => _docs/serverpack.md (100%) rename serverpack2.md => _docs/serverpack2.md (100%) create mode 100644 _includes/footer.html create mode 100644 _includes/head/custom.html create mode 100644 _pages/docs.md create mode 100644 favicon.ico rename help-index.md => index.markdown (100%) diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..9a60ab2 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +pipeline: + jekyll-build: + image: jekyll/jekyll:4.2.2 + commands: + - touch Gemfile.lock + - chmod a+w Gemfile.lock + - chown -R jekyll:jekyll /drone + - gem update --system + - gem install bundler + - bundle install + - bundle exec jekyll build + + deploy: + image: drillster/drone-rsync + source: _site/* + target: ~/docs.hmcl.net + recursive: true + delete: true + when: + branch: [master] + event: [push] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4ed38ad --- /dev/null +++ b/.gitignore @@ -0,0 +1,7 @@ +_site +.sass-cache +.jekyll-cache +.jekyll-metadata +vendor +Gemfile.lock +.bundle \ No newline at end of file diff --git a/404.html b/404.html new file mode 100644 index 0000000..086a5c9 --- /dev/null +++ b/404.html @@ -0,0 +1,25 @@ +--- +permalink: /404.html +layout: default +--- + + + +
+

404

+ +

Page not found :(

+

The requested page could not be found.

+
diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c643ffc --- /dev/null +++ b/Gemfile @@ -0,0 +1,37 @@ +source "https://rubygems.org" +# Hello! This is where you manage which Jekyll version is used to run. +# When you want to use a different version, change it below, save the +# file and run `bundle install`. Run Jekyll with `bundle exec`, like so: +# +# bundle exec jekyll serve +# +# This will help ensure the proper Jekyll version is running. +# Happy Jekylling! +gem "jekyll", "~> 4.2.2" +# This is the default theme for new Jekyll sites. You may change this to anything you like. +gem "minimal-mistakes-jekyll" + +group :jekyll_plugins do + gem "jekyll-paginate" + gem "jekyll-sitemap" + gem "jekyll-gist" + gem "jekyll-feed" + gem "jemoji" + gem "jekyll-include-cache" + gem "jekyll-algolia" + gem "jekyll-remote-theme" + gem "jekyll-archives" + gem "jekyll-seo-tag" +end + +# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem +# and associated library. +platforms :mingw, :x64_mingw, :mswin, :jruby do + gem "tzinfo" + gem "tzinfo-data" +end + +# Performance-booster for watching directories on Windows +gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin] + +gem "webrick", "~> 1.7" diff --git a/_config.yml b/_config.yml new file mode 100644 index 0000000..5391779 --- /dev/null +++ b/_config.yml @@ -0,0 +1,102 @@ +# Welcome to Jekyll! +# +# This config file is meant for settings that affect your whole blog, values +# which you are expected to set up once and rarely edit after that. If you find +# yourself editing this file very often, consider using Jekyll's data files +# feature for the data you need to update frequently. +# +# For technical reasons, this file is *NOT* reloaded automatically when you use +# 'bundle exec jekyll serve'. If you change this file, please restart the server process. +# +# If you need help with YAML syntax, here are some quick references for you: +# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml +# https://learnxinyminutes.com/docs/yaml/ +# +# Site settings +# These are used to personalize your new site. If you look in the HTML files, +# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on. +# You can create any custom variable you would like, and they will be accessible +# in the templates via {{ site.myvariable }}. + +remote_theme : "mmistakes/minimal-mistakes@4.24.0" +minimal_mistakes_skin : "default" # "air", "aqua", "contrast", "dark", "dirt", "neon", "mint", "plum", "sunrise" + +title: Hello Minecraft! Launcher 帮助文档 +email: hmcl@huangyuhui.net +description: >- # this means to ignore newlines until "baseurl:" + HMCL 启动器 | 跨平台 | 整合包管理 | 自动安装 | 八年历史 | 三亿次使用 +baseurl: "" # the subpath of your site, e.g. /blog +url: "https://docs.hmcl.net" +twitter_username: huanghongxun +github_username: huanghongxun +breadcrumbs: true + +# Build settings +#theme: minimal-mistakes-jekyll +plugins: + - jekyll-paginate + - jekyll-sitemap + - jekyll-gist + - jekyll-feed + - jemoji + - jekyll-include-cache + - jekyll-remote-theme + - jekyll-archives + - jekyll-seo-tag + +include: + - _pages + +collections: + docs: + output: true + permalink: /:collection/:path/ + +defaults: + - scope: + path: "assets/img" + values: + image: true + - scope: + path: "assets/css" + values: + css: true + - scope: + path: "_docs" + type: docs + values: + layout: single + read_time: false + author_profile: false + share: false + comments: false + sidebar: + nav: "docs" + +# Exclude from processing. +# The following items will not be processed, by default. +# Any item listed under the `exclude:` key here will be automatically added to +# the internal "default list". +# +# Excluded items can be processed by explicitly listing the directories or +# their entries' file path in the `include:` list. +# +# exclude: +# - .sass-cache/ +# - .jekyll-cache/ +# - gemfiles/ +# - Gemfile +# - Gemfile.lock +# - node_modules/ +# - vendor/bundle/ +# - vendor/cache/ +# - vendor/gems/ +# - vendor/ruby/ + +# Outputting +permalink: /:categories/:title/ + +compress_html: + clippings: all + ignore: + envs: development \ No newline at end of file diff --git a/about-questions.md b/_docs/about-questions.md similarity index 100% rename from about-questions.md rename to _docs/about-questions.md diff --git a/authlib-injector.md b/_docs/authlib-injector.md similarity index 93% rename from authlib-injector.md rename to _docs/authlib-injector.md index ac73f50..fa85830 100644 --- a/authlib-injector.md +++ b/_docs/authlib-injector.md @@ -1,6 +1,6 @@ --- title: "Authlib-Injector 服务器设置指南" -permalink: /help/launcher/authlib-injector.html +permalink: /launcher/authlib-injector.html date: 2021-08-22 23:18:02 +0800 categories: HMCL toc: true diff --git a/auto-installing.md b/_docs/auto-installing.md similarity index 100% rename from auto-installing.md rename to _docs/auto-installing.md diff --git a/contribution.md b/_docs/contribution.md similarity index 100% rename from contribution.md rename to _docs/contribution.md diff --git a/datapack.md b/_docs/datapack.md similarity index 100% rename from datapack.md rename to _docs/datapack.md diff --git a/Global-version-isolation.md b/_docs/global-version-isolation.md similarity index 100% rename from Global-version-isolation.md rename to _docs/global-version-isolation.md diff --git a/install_optifine.md b/_docs/install_optifine.md similarity index 100% rename from install_optifine.md rename to _docs/install_optifine.md diff --git a/modpack-in-java.md b/_docs/modpack-in-java.md similarity index 100% rename from modpack-in-java.md rename to _docs/modpack-in-java.md diff --git a/multiplayer-faq.md b/_docs/multiplayer-faq.md similarity index 100% rename from multiplayer-faq.md rename to _docs/multiplayer-faq.md diff --git a/multiplayer-help.md b/_docs/multiplayer-help.md similarity index 100% rename from multiplayer-help.md rename to _docs/multiplayer-help.md diff --git a/multiplayer-symmetric.md b/_docs/multiplayer-symmetric.md similarity index 100% rename from multiplayer-symmetric.md rename to _docs/multiplayer-symmetric.md diff --git a/multiplayer.md b/_docs/multiplayer.md similarity index 100% rename from multiplayer.md rename to _docs/multiplayer.md diff --git a/offline-skin.md b/_docs/offline-skin.md similarity index 100% rename from offline-skin.md rename to _docs/offline-skin.md diff --git a/serverpack.md b/_docs/serverpack.md similarity index 100% rename from serverpack.md rename to _docs/serverpack.md diff --git a/serverpack2.md b/_docs/serverpack2.md similarity index 100% rename from serverpack2.md rename to _docs/serverpack2.md diff --git a/_includes/footer.html b/_includes/footer.html new file mode 100644 index 0000000..aba1b61 --- /dev/null +++ b/_includes/footer.html @@ -0,0 +1,28 @@ + + + + \ No newline at end of file diff --git a/_includes/head/custom.html b/_includes/head/custom.html new file mode 100644 index 0000000..1ee4d3c --- /dev/null +++ b/_includes/head/custom.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/_pages/docs.md b/_pages/docs.md new file mode 100644 index 0000000..07f0720 --- /dev/null +++ b/_pages/docs.md @@ -0,0 +1,8 @@ +--- +title: 文档 +layout: collection +permalink: /help/ +collection: help +entries_layout: grid +classes: wide +--- \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..fe7ac703b65263266b6fe864bc89bae4c49bb646 GIT binary patch literal 4286 zcmb_gX;53&85O&XW5O0TgOC9sgd`Rr2`wNNNk{^;ArOnizKeZdjAP<8wqrZ-65GT! zi@}bUwv%zzai(qBdfYTk+ccTUWI9cgG;QPLN88DtX42{D_nvDKJLA+%{g}&p+qaQw>!~Etv8_waxa5$U{8Z^Zzroqg!7p*;rE49esFVMSf{sDp4{R4w; z#7eb}SZSgEgRuQ=HiTt$+yq%kM{2S2-7H%N0)j#i5FCO;MH%93b|VkISr5GZa&i!^ha;!`8P z3)a`)Nz5+b(cg#TrK->64Z|oIItbgNOVG5=BHic)<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