From afa091cccea85b5c493d5c327ec7426288870e8b Mon Sep 17 00:00:00 2001 From: Yuhui Huang Date: Wed, 4 May 2022 23:00:22 +0800 Subject: [PATCH] feat: index json --- .drone.yml | 1 + index.json | 22 ++++++++++++++++++++++ scripts/copy_index_json.sh | 6 ++++++ 3 files changed, 29 insertions(+) create mode 100644 index.json create mode 100644 scripts/copy_index_json.sh diff --git a/.drone.yml b/.drone.yml index ff8fe9e..2031631 100644 --- a/.drone.yml +++ b/.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 diff --git a/index.json b/index.json new file mode 100644 index 0000000..d146c58 --- /dev/null +++ b/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" + } + ] + } +] \ No newline at end of file diff --git a/scripts/copy_index_json.sh b/scripts/copy_index_json.sh new file mode 100644 index 0000000..715eab3 --- /dev/null +++ b/scripts/copy_index_json.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +ROOT=$(dirname $0)/../ +cd $ROOT + +cp index.json _site/index.json