From cacaae2335fef55c82224fcec1fad7a4d1a97f84 Mon Sep 17 00:00:00 2001 From: DarkCWK <20531116+DarkCWK@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:00:12 +0800 Subject: [PATCH] Modify homepage --- docs/.vitepress/config.js | 9 ++------- .../{Start/CreateBot.md => CreateBot/index.md} | 0 docs/Lagrange.Core/QuickStart.md | 11 ----------- docs/Lagrange.Core/Start/index.md | 7 ------- docs/Lagrange.Core/index.md | 12 ++++++++++++ docs/index.md | 4 ++-- 6 files changed, 16 insertions(+), 27 deletions(-) rename docs/Lagrange.Core/{Start/CreateBot.md => CreateBot/index.md} (100%) delete mode 100644 docs/Lagrange.Core/QuickStart.md delete mode 100644 docs/Lagrange.Core/Start/index.md diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 24a0e63e..3d8a382b 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -47,13 +47,8 @@ module.exports = { collapsed: false, items: [ { - text: "开始", - link: "/Lagrange.Core/Start/", - collapsed: true, - items: [ - { text: "快速上手", link: "/Lagrange.Core/QuickStart" }, - { text: "创建 Bot 实例", link: "/Lagrange.Core/Start/CreateBot" }, - ], + text: "创建 Bot 实例", + link: "/Lagrange.Core/CreateBot/" }, { text: "登录", diff --git a/docs/Lagrange.Core/Start/CreateBot.md b/docs/Lagrange.Core/CreateBot/index.md similarity index 100% rename from docs/Lagrange.Core/Start/CreateBot.md rename to docs/Lagrange.Core/CreateBot/index.md diff --git a/docs/Lagrange.Core/QuickStart.md b/docs/Lagrange.Core/QuickStart.md deleted file mode 100644 index 30035f0b..00000000 --- a/docs/Lagrange.Core/QuickStart.md +++ /dev/null @@ -1,11 +0,0 @@ -# 快速上手 - -1. 使用以下任一方案引用 `Lagrange.Core` - - 从 Nuget 导入 [Lagrange.Core](https://www.nuget.org/packages/Lagrange.Core) 到你的项目 (Nuget 可能不为最新) - - 通过 git submodule 功能将 [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) 作为解决方案中的项目, 并在你的项目中引用 -2. [创建 Bot 实例](/Lagrange.Core/Start/) -3. [登录](/Lagrange.Core/Login/) -4. [监听并处理 Bot 收到的消息等事件](/Lagrange.Core/Event/) -5. [发送消息](/Lagrange.Core/Send/) - -恭喜你, 到这里你已经学废写鸡气人辣, 赶紧逝世罢 diff --git a/docs/Lagrange.Core/Start/index.md b/docs/Lagrange.Core/Start/index.md deleted file mode 100644 index 29235b03..00000000 --- a/docs/Lagrange.Core/Start/index.md +++ /dev/null @@ -1,7 +0,0 @@ -# 开始 - -本章介绍了创建一个基于 Lagrange.Core 程序的基本操作 - -## 导航 - -1. [创建 Bot 实例](/Lagrange.Core/Start/CreateBot) diff --git a/docs/Lagrange.Core/index.md b/docs/Lagrange.Core/index.md index 3f962201..1d3da4e7 100644 --- a/docs/Lagrange.Core/index.md +++ b/docs/Lagrange.Core/index.md @@ -1 +1,13 @@ # Lagrange.Core + +## 快速开始 + +1. 使用以下任一方案引用 `Lagrange.Core` + - 从 Nuget 导入 [Lagrange.Core](https://www.nuget.org/packages/Lagrange.Core) 到你的项目 (版本可能不为最新版本) + - 通过 git submodule 功能将 [Lagrange.Core](https://github.com/LagrangeDev/Lagrange.Core) 作为解决方案中的项目, 并在你的项目中引用 +2. [创建 Bot 实例](/Lagrange.Core/CreateBot/) +3. [登录](/Lagrange.Core/Login/) +4. [监听并处理 Bot 收到的消息等事件](/Lagrange.Core/Event/) +5. [发送消息](/Lagrange.Core/Send/) + +恭喜你, 到这里你已经学废写鸡气人辣, 赶紧逝世罢 diff --git a/docs/index.md b/docs/index.md index 94b58af6..f9c2d8b5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,8 +8,8 @@ Lagrange.Core 是一个开源的 NTQQ 协议实现, 当前处于稳定期, 免 ### "已经是一名熟练的 C# Dev 了?" -[Lagrange.Core.Test](https://github.com/LagrangeDev/Lagrange.Core/tree/master/Lagrange.Core.Test) 内涵简单的登陆和测试案例 +前往 [Lagrange.Core](./Lagrange.Core/index.md) 查看 API 文档 ### "希望对接其他 Bot 框架 (NoneBot2, Koishi ...)" -[Lagrange.OneBot](https://github.com/LagrangeDev/Lagrange.Core/tree/master/Lagrange.OneBot) 详细的基于 Lagrange.Core 的 OneBot V11 实现 +前往 [Lagrange.OneBot](./Lagrange.OneBot/index.md) 查看如何配置 `Lagrange.OneBot`