feat: 新的资源包加载逻辑

feat: 主题商店支持
This commit is contained in:
2024-04-06 08:48:21 +08:00
parent be0b5e6de1
commit a76bc3de92
14 changed files with 153 additions and 31 deletions

View File

@ -11,5 +11,10 @@ export default navbar([
text: "使用手册",
link: "/usage/",
prefix: "usage/",
},
{
text: "主题商店",
link: "/store/",
prefix: "store/",
}
]);

View File

@ -19,6 +19,10 @@ actions:
- text: 使用手册
icon: book
link: ./usage/basic_command.html
- text: 主题商店
icon: paint-brush
link: ./theme/theme_store.html
#1. 安装 `Git` 和 `Python3.10+` 环境
#2. 克隆项目 `git clone https://github.com/snowykami/LiteyukiBot` (无法连接可以用`https://gitee.com/snowykami/LiteyukiBot`)

27
docs/store/README.md Normal file
View File

@ -0,0 +1,27 @@
---
home: true
icon: paint-brush
heroText: Liteyuki Theme Store
tagline: 轻雪主题/资源商店
highlights:
- header: 所有资源包
bgImage: https://theme-hope-assets.vuejs.press/bg/2-light.svg
bgImageDark: https://theme-hope-assets.vuejs.press/bg/2-dark.svg
bgImageStyle:
background-repeat: repeat
background-size: initial
features:
- title: Kawaii-Status
icon: paint-brush
details: 可爱的状态卡片模仿的Koishi
link: https://cdn.liteyuki.icu/static/lrp/KawaiiStatus.zip
- title: MiSans字体包
icon: paint-brush
details: 标准字体包,适用于大多数主题,简约大方
link: https://cdn.liteyuki.icu/static/lrp/MiSansFonts.zip
- title: MapleMono字体包
icon: paint-brush
details: 适用于标准主题的MapleMono字体包
link: https://cdn.liteyuki.icu/static/lrp/MapleMonoFonts.zip
---

View File

@ -17,10 +17,11 @@ category: 使用手册
[S]liteecho # 查看当前bot
[S]config set <key> value # 添加配置项,若存在则会覆盖,输入值会被执行,以便于转换为正确的值,"10"和10是不一样的
[S]config get [key] # 查询配置项不带key返回配置项列表推荐私聊使用
[S]reload-resources # 重载资源
[S]switch-image-mode # 切换图片模式该功能需要commit:505468b及以后的Lagrange.OneBot在普通图片和Markdown图片之间切换后者更大但有失败的可能
# 上述两个命令修改的配置项在数据库中保存,但是优先级低于配置文件,如果配置文件中存在相同的配置项,将会使用配置文件中的配置
------
别名: reload-liteyuki 重启轻雪, update-liteyuki 更新轻雪, config 配置, set 设置, get 查询
别名: reload-liteyuki 重启轻雪, update-liteyuki 更新轻雪, reload-resources 重载资源, config 配置, set 设置, get 查询
```
### 轻雪Nonebot插件管理 `liteyuki_npm`