KiviBot
是使用 TypeScript 语言编写的轻量、优雅、跨平台、开发者友好的 QQ 机器人框架。
这是 KiviBot QQ 机器人框架的文档网站,使用 Next.js 和 Nextra 构建。
求 Star⭐️,求 Fork🍴,求 PR🎉,求 Issue🚀
由于Kivibot为Viki个人自用项目,所以并未发布为Github仓库,只发布为npm包的形式,代码可以自行到npmjs上查看。
这是一个 KiviBot QQ 机器人框架的文档网站,使用 Next.js 和 Nextra 构建。KiviBot 是一款轻量级、高性能、跨平台的 QQ 机器人框架。
.
├── app/ # Next.js 应用程序目录
│ ├── [[...mdxPath]]/ # 动态路由处理 MDX 文件
│ ├── icon.png # 网站图标
│ └── layout.tsx # 主布局组件
├── components/ # React 组件
│ ├── features.tsx # 特性展示组件
│ ├── icons.tsx # 图标组件
│ └── ScrollToTop.tsx # 返回顶部组件
├── content/ # 文档内容(MDX)
│ ├── _meta.js # 内容元数据配置
│ └── ... # 其他内容文件
├── public/ # 静态资源
├── style/ # 样式文件
├── next.config.ts # Next.js 配置
└── package.json # 项目依赖
- Node.js 18 或更高版本
- pnpm (推荐) 或 npm
pnpm install
pnpm dev
开发服务器将在 http://localhost:3000 启动。
# 构建生产版本
pnpm build
# 启动生产服务
pnpm start
文档使用 MDX 格式编写,支持 Markdown 和 React 组件混合使用。
Tip
MDX 让我们能够在 Markdown 文档中使用 React 组件,为文档增加更多交互性和可视化元素!
- 在
content/docs
目录下创建新的.mdx
文件 - 添加必要的前置元数据
- 更新对应的
_meta.js
文件 - 编写内容,保持与现有文档风格一致
- Fork 本仓库
- 创建您的特性分支 (
git checkout -b feature/amazing-feature
) - 提交您的改动 (
git commit -m 'Add some amazing feature'
) - 推送到分支 (
git push origin feature/amazing-feature
) - 创建 Pull Request
This is the documentation website for KiviBot QQ Bot Framework, built with Next.js and Nextra. KiviBot is a lightweight, high-performance, cross-platform QQ bot framework.
A truly ideal bot should be powerful enough, unobtrusive, and ready to help efficiently when you need it. —— Viki
.
├── app/ # Next.js application directory
│ ├── [[...mdxPath]]/ # Dynamic routing for MDX files
│ ├── icon.png # Website icon
│ └── layout.tsx # Main layout component
├── components/ # React components
│ ├── features.tsx # Features display component
│ ├── icons.tsx # Icons component
│ └── ScrollToTop.tsx # Scroll to top component
├── content/ # Documentation content (MDX)
│ ├── _meta.js # Content metadata configuration
│ └── ... # Other content files
├── public/ # Static assets
├── style/ # Stylesheets
├── next.config.ts # Next.js configuration
└── package.json # Project dependencies
- Node.js 18 or higher
- pnpm (recommended) or npm
pnpm install
pnpm dev
Development server will start at http://localhost:3000.
# Build for production
pnpm build
# Start production server
pnpm start
Documents are written in MDX format, supporting both Markdown and React components.
Tip
MDX allows us to use React components within Markdown documents, adding more interactivity and visual elements to the documentation!
- Create new
.mdx
files in thecontent/docs
directory - Add necessary metadata
- Update the corresponding
_meta.js
file - Write content, keeping consistent with existing documentation style
- Fork this repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Create a Pull Request