2021-06-16 00:17:30 +08:00
|
|
|
|
site_name: 炸毛框架文档
|
2020-11-10 23:16:55 +08:00
|
|
|
|
|
|
|
|
|
|
repo_name: '炸毛框架'
|
|
|
|
|
|
repo_url: 'https://github.com/zhamao-robot/zhamao-framework'
|
2020-12-23 16:14:59 +08:00
|
|
|
|
edit_uri: 'blob/master/docs/'
|
2020-11-10 23:16:55 +08:00
|
|
|
|
|
|
|
|
|
|
theme:
|
|
|
|
|
|
name: material
|
|
|
|
|
|
logo: assets/logos.png
|
2020-11-23 00:24:33 +08:00
|
|
|
|
favicon: assets/favicon.png
|
|
|
|
|
|
language: zh
|
2021-01-04 16:59:19 +08:00
|
|
|
|
palette:
|
2021-02-24 23:37:00 +08:00
|
|
|
|
primary: indigo
|
|
|
|
|
|
accent: indigo
|
2020-11-10 23:16:55 +08:00
|
|
|
|
features:
|
|
|
|
|
|
- navigation.tabs
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- navigation.sections
|
2020-11-10 23:16:55 +08:00
|
|
|
|
extra_javascript:
|
2022-03-19 23:23:14 +08:00
|
|
|
|
- javascripts/library/highlight.min.js
|
2020-11-10 23:16:55 +08:00
|
|
|
|
- javascripts/config.js
|
|
|
|
|
|
extra_css:
|
2020-12-22 16:28:34 +08:00
|
|
|
|
- assets/css/extra.css
|
2022-03-19 23:23:14 +08:00
|
|
|
|
- assets/css/library/default.min.css
|
2021-07-04 15:45:30 +08:00
|
|
|
|
plugins:
|
|
|
|
|
|
- search:
|
|
|
|
|
|
lang: ja
|
2020-11-10 23:16:55 +08:00
|
|
|
|
markdown_extensions:
|
|
|
|
|
|
- admonition
|
|
|
|
|
|
- pymdownx.tabbed
|
2020-11-22 19:18:23 +08:00
|
|
|
|
- pymdownx.superfences
|
|
|
|
|
|
- pymdownx.inlinehilite
|
|
|
|
|
|
- pymdownx.snippets
|
2021-07-09 10:43:00 +08:00
|
|
|
|
- pymdownx.details
|
2020-11-23 01:09:57 +08:00
|
|
|
|
- abbr
|
2020-11-22 19:18:23 +08:00
|
|
|
|
- pymdownx.highlight:
|
|
|
|
|
|
linenums: true
|
|
|
|
|
|
linenums_style: pymdownx.inline
|
2020-11-23 01:09:57 +08:00
|
|
|
|
extra:
|
|
|
|
|
|
version:
|
2021-06-16 00:17:30 +08:00
|
|
|
|
provider: mike
|
2020-11-10 23:16:55 +08:00
|
|
|
|
|
2022-03-18 16:48:30 +08:00
|
|
|
|
copyright: 'Copyright © 2019 - 2022 CrazyBot Team <span class="tx-switch">
|
2020-11-23 01:09:57 +08:00
|
|
|
|
<button data-md-color-scheme="default"><code>默认模式</code></button>
|
|
|
|
|
|
<button data-md-color-scheme="slate"><code>暗黑模式</code></button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
|
var buttons = document.querySelectorAll("button[data-md-color-scheme]");
|
|
|
|
|
|
buttons.forEach(function(button) {
|
|
|
|
|
|
button.addEventListener("click", function() {
|
|
|
|
|
|
var attr = this.getAttribute("data-md-color-scheme");
|
|
|
|
|
|
setCookie("_theme", attr);
|
|
|
|
|
|
document.body.setAttribute("data-md-color-scheme", attr);
|
|
|
|
|
|
var name = document.querySelector("#__code_0 code span:nth-child(7)");
|
|
|
|
|
|
name.textContent = attr;
|
|
|
|
|
|
})
|
|
|
|
|
|
})
|
2021-06-16 00:17:30 +08:00
|
|
|
|
</script><br><a href="http://beian.miit.gov.cn">沪ICP备2021010446号-1</a>'
|
2020-11-10 23:16:55 +08:00
|
|
|
|
|
|
|
|
|
|
nav:
|
|
|
|
|
|
- 指南:
|
|
|
|
|
|
- 介绍: index.md
|
2021-01-02 13:28:26 +08:00
|
|
|
|
- 安装框架: guide/installation.md
|
|
|
|
|
|
- 快速上手(机器人篇): guide/quickstart-robot.md
|
|
|
|
|
|
- 快速上手(HTTP篇): guide/quickstart-http.md
|
|
|
|
|
|
- 选择聊天机器人实例: guide/onebot-choose.md
|
|
|
|
|
|
- 基本配置: guide/basic-config.md
|
|
|
|
|
|
- 编写模块: guide/write-module.md
|
|
|
|
|
|
- 注册事件响应: guide/register-event.md
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 升级指南: guide/upgrade.md
|
2021-07-04 15:45:30 +08:00
|
|
|
|
- 错误码对照表: guide/errcode.md
|
2020-11-10 23:16:55 +08:00
|
|
|
|
- 事件和注解:
|
|
|
|
|
|
- 事件和注解: event/index.md
|
2021-01-02 13:28:26 +08:00
|
|
|
|
- 机器人注解事件: event/robot-annotations.md
|
|
|
|
|
|
- HTTP 路由注解事件: event/route-annotations.md
|
|
|
|
|
|
- 框架核心注解事件: event/framework-annotations.md
|
|
|
|
|
|
- 中间件注解: event/middleware.md
|
|
|
|
|
|
- 自定义注解: event/custom-annotations.md
|
|
|
|
|
|
- 事件分发器: event/event-dispatcher.md
|
2020-11-10 23:16:55 +08:00
|
|
|
|
- 框架组件:
|
|
|
|
|
|
- 框架组件: component/index.md
|
2021-03-24 23:34:46 +08:00
|
|
|
|
- 聊天机器人组件:
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 机器人动作(V12): component/bot/robot-api-12.md
|
|
|
|
|
|
- 机器人动作(V11): component/bot/robot-api.md
|
2021-06-16 00:17:30 +08:00
|
|
|
|
- CQ 码(多媒体消息): component/bot/cqcode.md
|
|
|
|
|
|
- 机器人消息处理: component/bot/message-util.md
|
|
|
|
|
|
- Token 验证: component/bot/access-token.md
|
|
|
|
|
|
- 图灵机器人 API: component/bot/turing-api.md
|
2021-01-05 16:19:35 +08:00
|
|
|
|
- 存储:
|
2021-06-16 00:17:30 +08:00
|
|
|
|
- LightCache 轻量缓存: component/store/light-cache.md
|
2021-10-17 16:56:52 +08:00
|
|
|
|
- MySQL 查询器:
|
|
|
|
|
|
- 简介: component/store/mysql/mysql.md
|
|
|
|
|
|
- 配置: component/store/mysql/config.md
|
|
|
|
|
|
- 执行 SQL 语句: component/store/mysql/common-query.md
|
2021-09-01 14:14:00 +08:00
|
|
|
|
- MySQL 查询器(废弃): component/store/mysql-db.md
|
2021-06-16 00:17:30 +08:00
|
|
|
|
- Redis 数据库: component/store/redis.md
|
|
|
|
|
|
- ZMAtomic 原子计数器: component/store/atomics.md
|
|
|
|
|
|
- SpinLock 自旋锁: component/store/spin-lock.md
|
|
|
|
|
|
- 文件管理: component/store/data-provider.md
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 通用组件:
|
|
|
|
|
|
- 上下文: component/common/context.md
|
|
|
|
|
|
- 协程池: component/common/coroutine-pool.md
|
|
|
|
|
|
- 单例类: component/common/singleton-trait.md
|
|
|
|
|
|
- ZMUtil 杂项: component/common/zmutil.md
|
|
|
|
|
|
- 全局方法: component/common/global-functions.md
|
|
|
|
|
|
- Console 终端: component/common/console.md
|
|
|
|
|
|
- TaskWorker 管理: component/common/task-worker.md
|
|
|
|
|
|
- Terminal 终端: component/common/remote-terminal.md
|
2022-03-19 20:33:13 +08:00
|
|
|
|
- EventTracer 事件追踪器: component/common/event-tracer.md
|
2021-03-24 23:34:46 +08:00
|
|
|
|
- HTTP 服务器工具类:
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- HTTP 和 WebSocket 客户端: component/http/zmrequest.md
|
|
|
|
|
|
- HTTP 路由管理: component/http/route-manager.md
|
2021-07-09 10:43:00 +08:00
|
|
|
|
- 模块/插件管理:
|
|
|
|
|
|
- 模块打包: component/module/module-pack.md
|
2021-09-01 14:14:00 +08:00
|
|
|
|
- 模块解包: component/module/module-unpack.md
|
2020-11-10 23:16:55 +08:00
|
|
|
|
- 进阶开发:
|
2020-12-22 16:28:34 +08:00
|
|
|
|
- 进阶开发: advanced/index.md
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 框架高级开发:
|
|
|
|
|
|
- 框架剖析: advanced/framework-structure.md
|
|
|
|
|
|
- 框架启动模式: advanced/custom-start.md
|
|
|
|
|
|
- 手动安装环境: advanced/manually-install.md
|
|
|
|
|
|
- 内部类文件手册: advanced/inside-class.md
|
|
|
|
|
|
- 框架多进程: advanced/multi-process.md
|
|
|
|
|
|
- TaskWorker 提高并发: advanced/task-worker.md
|
2021-02-20 16:57:19 +08:00
|
|
|
|
- 开发实战教程:
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 接入 WebSocket 客户端: advanced/connect-ws-client.md
|
2021-02-20 16:57:19 +08:00
|
|
|
|
- 编写管理员才能触发的功能: advanced/example/admin.md
|
2022-03-18 16:44:04 +08:00
|
|
|
|
- 接入青云客聊天API: advanced/example/integrate-qingyunke-chatbot.md
|
2022-03-20 00:11:45 +08:00
|
|
|
|
- 开发天气机器人: advanced/example/weather-bot.md
|
2021-03-29 17:12:09 +08:00
|
|
|
|
- FAQ:
|
|
|
|
|
|
- FAQ: faq/FAQ.md
|
2021-10-17 15:37:55 +08:00
|
|
|
|
- 从 v1 升级: faq/to-v2.md
|
2021-07-09 01:38:30 +08:00
|
|
|
|
- 框架常见问题(持续更新): faq/usual-question.md
|
2021-03-29 17:12:09 +08:00
|
|
|
|
- 启动时报错 Address already in use: faq/address-already-in-use.md
|
|
|
|
|
|
- 出现 deadlock 字样: faq/display-deadlock.md
|
|
|
|
|
|
- 使用 LightCache 关闭时无法正常保存持久化: faq/light-cache-wrong.md
|
|
|
|
|
|
- CQBefore 过滤不了 waitMessage: faq/wait-message-cqbefore.md
|
2020-11-10 23:16:55 +08:00
|
|
|
|
- 更新日志:
|
2020-12-23 01:21:51 +08:00
|
|
|
|
- 更新日志(v2): update/v2.md
|
|
|
|
|
|
- 更新日志(v1): update/v1.md
|
2021-09-01 14:14:00 +08:00
|
|
|
|
- 更新日志(build update): update/build-update.md
|
2021-03-27 16:30:15 +08:00
|
|
|
|
- 配置文件更新日志: update/config.md
|
2020-12-23 01:21:51 +08:00
|
|
|
|
- <u>炸毛框架 v1</u>: https://docs-v1.zhamao.xin/
|