Compare commits

...

3 Commits

Author SHA1 Message Date
07c67a215b chore: adjust volume path
All checks were successful
continuous-integration/drone/push Build is passing
2022-05-04 23:01:44 +08:00
afa091ccce feat: index json 2022-05-04 23:00:22 +08:00
cccfc1e1a4 chore: cache jekyll themes 2022-05-04 22:50:53 +08:00
3 changed files with 35 additions and 1 deletions

View File

@ -16,11 +16,17 @@ steps:
- bundle config mirror.https://rubygems.org https://mirrors.tuna.tsinghua.edu.cn/rubygems
- bundle install
- bundle exec jekyll build
- bash scripts/copy_index_json.sh
volumes:
- name: dist
path: /drone/src/_site
- name: cache
path: /drone/src/.jekyll-cache
volumes:
- name: dist
host:
path: /home/ubuntu/docs.hmcl.net
path: /home/ubuntu/docs.hmcl.net/site
- name: cache
host:
path: /home/ubuntu/docs.hmcl.net/cache

22
index.json Normal file
View File

@ -0,0 +1,22 @@
[
{
"title": "启动器",
"items": [
{
"title": "Authlib-Injector 服务器设置指南",
"subtitle": "手动打包整合包后,初次打开动器时直接弹出对应的账号登录页",
"url": "https://hmcl.huangyuhui.net/help/launcher/authlib-injector.html"
},
{
"title": "数据包制作指南",
"subtitle": "制作可以由 HMCL 导入的数据包",
"url": "https://hmcl.huangyuhui.net/help/launcher/datapack.html"
},
{
"title": "服务端自动更新整合包制作教程",
"subtitle": "服务端自动更新整合包允许启动器根据服主配置强制更新玩家游戏客户端",
"url": "https://hmcl.huangyuhui.net/help/launcher/serverpack.html"
}
]
}
]

View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
ROOT=$(dirname $0)/../
cd $ROOT
cp index.json _site/index.json