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 0000000..fe7ac70 Binary files /dev/null and b/favicon.ico differ diff --git a/help-index.md b/index.markdown similarity index 100% rename from help-index.md rename to index.markdown