Browse Source

refactor: jekyll

zkitefly-patch-1
Yuhui Huang 3 years ago
parent
commit
73c09b154f
  1. 21
      .drone.yml
  2. 7
      .gitignore
  3. 25
      404.html
  4. 37
      Gemfile
  5. 102
      _config.yml
  6. 0
      _docs/about-questions.md
  7. 2
      _docs/authlib-injector.md
  8. 0
      _docs/auto-installing.md
  9. 0
      _docs/contribution.md
  10. 0
      _docs/datapack.md
  11. 0
      _docs/global-version-isolation.md
  12. 0
      _docs/install_optifine.md
  13. 0
      _docs/modpack-in-java.md
  14. 0
      _docs/multiplayer-faq.md
  15. 0
      _docs/multiplayer-help.md
  16. 0
      _docs/multiplayer-symmetric.md
  17. 0
      _docs/multiplayer.md
  18. 0
      _docs/offline-skin.md
  19. 0
      _docs/serverpack.md
  20. 0
      _docs/serverpack2.md
  21. 28
      _includes/footer.html
  22. 1
      _includes/head/custom.html
  23. 8
      _pages/docs.md
  24. BIN
      favicon.ico
  25. 0
      index.markdown

21
.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]

7
.gitignore vendored

@ -0,0 +1,7 @@
_site
.sass-cache
.jekyll-cache
.jekyll-metadata
vendor
Gemfile.lock
.bundle

25
404.html

@ -0,0 +1,25 @@
---
permalink: /404.html
layout: default
---
<style type="text/css" media="screen">
.container {
margin: 10px auto;
max-width: 600px;
text-align: center;
}
h1 {
margin: 30px 0;
font-size: 4em;
line-height: 1;
letter-spacing: -1px;
}
</style>
<div class="container">
<h1>404</h1>
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>
</div>

37
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"

102
_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

0
about-questions.md → _docs/about-questions.md

2
authlib-injector.md → _docs/authlib-injector.md

@ -1,6 +1,6 @@
--- ---
title: "Authlib-Injector 服务器设置指南" title: "Authlib-Injector 服务器设置指南"
permalink: /help/launcher/authlib-injector.html permalink: /launcher/authlib-injector.html
date: 2021-08-22 23:18:02 +0800 date: 2021-08-22 23:18:02 +0800
categories: HMCL categories: HMCL
toc: true toc: true

0
auto-installing.md → _docs/auto-installing.md

0
contribution.md → _docs/contribution.md

0
datapack.md → _docs/datapack.md

0
Global-version-isolation.md → _docs/global-version-isolation.md

0
install_optifine.md → _docs/install_optifine.md

0
modpack-in-java.md → _docs/modpack-in-java.md

0
multiplayer-faq.md → _docs/multiplayer-faq.md

0
multiplayer-help.md → _docs/multiplayer-help.md

0
multiplayer-symmetric.md → _docs/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

28
_includes/footer.html

@ -0,0 +1,28 @@
<div class="page__footer-follow">
<ul class="social-icons">
{% if site.data.ui-text[site.locale].follow_label %}
<li><strong>{{ site.data.ui-text[site.locale].follow_label }}</strong></li>
{% endif %}
{% if site.footer.links %}
{% for link in site.footer.links %}
{% if link.label and link.url %}
<li><a href="{{ link.url }}" rel="nofollow noopener noreferrer"><i class="{{ link.icon | default: 'fas fa-link' }}" aria-hidden="true"></i> {{ link.label }}</a></li>
{% endif %}
{% endfor %}
{% endif %}
{% unless site.atom_feed.hide %}
<li><a href="{% if site.atom_feed.path %}{{ site.atom_feed.path }}{% else %}{{ '/feed.xml' | relative_url }}{% endif %}"><i class="fas fa-fw fa-rss-square" aria-hidden="true"></i> {{ site.data.ui-text[site.locale].feed_label | default: "Feed" }}</a></li>
{% endunless %}
</ul>
</div>
<div class="page__footer-copyright">&copy; {{ site.time | date: '%Y' }} huangyuhui.
<a href="http://www.beian.miit.gov.cn">粤 ICP 备 18071565 号</a>
<img src="https://www.huangyuhui.net/ghs.png">
<a
href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=44011302001383"
>粤公网安备 44011302001383 号</a
> </div>

1
_includes/head/custom.html

@ -0,0 +1 @@
<link rel="shortcut icon" href="favicon.ico">

8
_pages/docs.md

@ -0,0 +1,8 @@
---
title: 文档
layout: collection
permalink: /help/
collection: help
entries_layout: grid
classes: wide
---

BIN
favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

0
help-index.md → index.markdown

Loading…
Cancel
Save