Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
vivien8261 committed Feb 3, 2024
1 parent 9574fe8 commit 5b75ea1
Show file tree
Hide file tree
Showing 9 changed files with 121 additions and 38 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import sidebar from './nav/sidebar'
export default {
lang: 'zh-CN',
title: 'AmiyaBot',
description: '基于 Python asyncio 的简洁高效的 QQ 机器人框架',
description: 'AmiyaBot,Python 渐进式 QQ 频道机器人框架,可使用内置适配器对接 QQ 群、OneBot v11/12、KOOK 等机器人平台。',
themeConfig: {
nav: navbar,
logo: '/logo.svg',
Expand All @@ -18,7 +18,7 @@ export default {
],
footer: {
message: 'MIT & CC BY-NC-SA 4.0 Licensed. More Info <a href="https://github.com/AmiyaBot/Amiya-Bot-docs/blob/master/README.md#%E7%89%88%E6%9D%83%E4%BF%A1%E6%81%AF" target="_blank">Click Here</a>.',
copyright: 'Copyright © 2023-present vivien8261 <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2021107697号-1</a>'
copyright: 'Copyright © 2024-present vivien8261 <a href="https://beian.miit.gov.cn/" target="_blank">粤ICP备2021107697号-1</a>'
},
search: {
provider: 'local'
Expand Down
16 changes: 11 additions & 5 deletions docs/.vitepress/nav/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,17 @@ export default [
{
text: '兔兔-V6',
items: [
{ text: '开始部署', link: '/guide/deploy/' },
{ text: '常见问题', link: '/guide/deploy/faq/commonProblem' },
{ text: '连接控制台', link: '/guide/deploy/console/index.md' },
{ text: '如何更新', link: '/guide/deploy/maintain/upgrade.md' },
{ text: '高级使用', link: '/guide/deploy/advanced/index.md' },
{
text: '部署',
items: [
{ text: '开始部署', link: '/guide/deploy/' },
{ text: '常见问题', link: '/guide/deploy/faq/commonProblem' },
{ text: '连接控制台', link: '/guide/deploy/console/index.md' },
{ text: '如何更新', link: '/guide/deploy/maintain/upgrade.md' },
{ text: '高级使用', link: '/guide/deploy/advanced/index.md' },
]
},
{ text: '使用官方版 🎉', link: '/guide/deploy/#官方版兔兔' },
]
},
{
Expand Down
20 changes: 12 additions & 8 deletions docs/.vitepress/theme/custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,22 @@ i.red {
text-decoration: underline !important;
}

/*.VPHome .tagline:after {*/
/* content: '';*/
/* display: block;*/
/* margin-top: 15px;*/
/* font-size: 18px;*/
/* color: var(--vp-c-text-1);*/
/*}*/

.VPLink.link.link > .text {
line-height: 20px;
}

.main-container {
width: 1152px;
margin: auto;
padding: 30px 20px 0;
}

@media screen and (max-width: 768px) {
.main-container {
width: calc(100% - 20px);
}
}

/*.VPContent.is-home {*/
/* -webkit-filter: grayscale(100%);*/
/* -moz-filter: grayscale(100%);*/
Expand Down
49 changes: 49 additions & 0 deletions docs/components/bots.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<template>
<div class="bots">
<a class="title"
href="https://qun.qq.com/qunpro/robot/qunshare?robot_uin=2854197898&robot_appid=102068219&biz_type=0">
点击或扫码添加到群聊
<img src="/E0BA9D78918921391A5BE261A96C6F04.jpg" alt="">
</a>
<a class="title"
href="https://qun.qq.com/qunpro/robot/share?robot_appid=102005657">
点击或扫码添加到频道
<img src="/F7AB3AFE554027987502E5E1AB65746E.jpg" alt="">
</a>
</div>
</template>

<script>
export default {
name: 'bots'
}
</script>

<style scoped>
.bots {
display: flex;
}
.title {
color: #b74ec9;
font-size: 20px;
display: flex;
flex-direction: column;
align-items: center;
}
img {
margin: 10px 0;
}
@media screen and (max-width: 768px) {
.bots {
flex-direction: column;
}
.title {
font-size: 14px;
}
}
</style>
10 changes: 10 additions & 0 deletions docs/guide/deploy/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<script setup>
import bots from '../../components/bots.vue';
</script>

# 简要说明

《明日方舟》机器人 [兔兔-v6](https://github.com/AmiyaBot/Amiya-Bot)
Expand All @@ -11,3 +15,9 @@
[Amiya-Bot-console2](https://github.com/AmiyaBot/Amiya-Bot-console2),如果你不需要这些代码,也许你难以将它们抽离。请谨慎选择此方式。

那么,如何部署属于自己的 兔兔-v6(以下简称“兔兔”),请阅读接下来的文档。

## 官方版兔兔

现在,你可以直接使用官方版的兔兔啦!🎉🎉🎉

<bots style="padding-top: 10px"></bots>
58 changes: 36 additions & 22 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,43 @@
layout: home

hero:
name: AmiyaBot
text: Progressive Python QQ Bot Framework
tagline: 渐进式 QQ 频道机器人框架,可使用内置适配器对接 QQ 群、OneBot v11/12、KOOK 等机器人平台。
actions:
- theme: brand
text: 开始使用
link: /develop/basic/
- theme: alt
text: 部署《明日方舟》机器人 兔兔-V6
link: /guide/deploy/
name: AmiyaBot
text: Progressive Python QQ Bot Framework
tagline: 渐进式 QQ 频道机器人框架,可使用内置适配器对接 QQ 群、OneBot v11/12、KOOK 等机器人平台。
image:
src: /logo.svg
alt: AmiyaBot
actions:
- theme: brand
text: 开始使用
link: /develop/basic/
- theme: alt
text: 添加兔兔-V6到你的群聊
link: /guide/deploy/#官方版兔兔
- theme: alt
text: 部署兔兔-V6
link: /guide/deploy/

features:
- icon: 🚀
title: 简洁高效
details: 采用异步 I/O,摆脱官方 API 繁杂的操作,以更加简洁和可读性更高的代码让你专注于你的业务逻辑。
- icon: 🎭
title: 多账号 & 热插拔
details: 支持同时创建多个机器人实例,为所有实例注册共享的消息处理方法,以及在多账号实例内动态增删机器人。
- icon: 🧩
title: 适配器 & 插件支持
details: 通过适配器来更改机器人的服务来源,提供更大的灵活性和可扩展性。支持插件开发方案,将业务和主程序分离,使机器人更加生态化和可定制化。
- icon: 🎉
title: 丰富的消息类型
details: 内置的 PIL 图像合成模块以及 HTML 转换器,支持自动合成文字图片或渲染 WEB Markdown 合成图片,轻松实现你的绝佳创意。
- icon: 🚀
title: 简洁高效
details: 采用异步 I/O,摆脱官方 API 繁杂的操作,以更加简洁和可读性更高的代码让你专注于你的业务逻辑。
- icon: 🎭
title: 多账号 & 热插拔
details: 支持同时创建多个机器人实例,为所有实例注册共享的消息处理方法,以及在多账号实例内动态增删机器人。
- icon: 🧩
title: 适配器 & 插件支持
details: 通过适配器来更改机器人的服务来源,提供更大的灵活性和可扩展性。支持插件开发方案,将业务和主程序分离,使机器人更加生态化和可定制化。
- icon: 🎉
title: 丰富的消息类型
details: 内置的 PIL 图像合成模块以及 HTML 转换器,支持合成文字图片或通过渲染 WEB Markdown 合成图片,轻松实现你的绝佳创意。

---

<script setup>
import bots from './components/bots.vue';
</script>

<div class="main-container">
<bots style="padding-top: 10px"></bots>
</div>
Binary file added docs/public/E0BA9D78918921391A5BE261A96C6F04.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/F7AB3AFE554027987502E5E1AB65746E.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/public/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5b75ea1

Please sign in to comment.