Browse Source

feat: index json

zkitefly-patch-1
Yuhui Huang 3 years ago
parent
commit
afa091ccce
  1. 1
      .drone.yml
  2. 22
      index.json
  3. 6
      scripts/copy_index_json.sh

1
.drone.yml

@ -16,6 +16,7 @@ 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

22
index.json

@ -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"
}
]
}
]

6
scripts/copy_index_json.sh

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