Skip to content

Commit

Permalink
docs: refactor docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ilharp committed Mar 10, 2024
1 parent 94460dc commit 5107fd5
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 393 deletions.
38 changes: 13 additions & 25 deletions packages/docs/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { join } from 'node:path'
import type { PresetOptions } from 'redocusaurus'

const title = 'Chronocat'
const tagline = '小巧轻便的 Red 实现'
const tagline = '模块化的 Satori 框架'

const logo = {
alt: 'Chronocat Logo',
Expand Down Expand Up @@ -64,7 +64,7 @@ const themeConfig: ThemeConfig = {
{
name: 'keywords',
content:
'Chronocat, Red, Chrononeko, RedProtocol, BetterQQNT, LiteLoaderQQNT, QQNTim, NoneBot, NoneBot2, Koishi, Koishi.js, Bot, Chatbot, 机器人, OneBot, QQ',
'Chronocat, Crychiccat, Yukihana, Curinacat, Red, Chrononeko, RedProtocol, BetterQQNT, LiteLoaderQQNT, QQNTim, NoneBot, NoneBot2, Koishi, Koishi.js, Bot, Chatbot, 机器人, OneBot, QQ',
},
],

Expand All @@ -77,26 +77,7 @@ const themeConfig: ThemeConfig = {
{
label: '使用',
position: 'left',
type: 'dropdown',
to: 'install',
items: [
{
label: '安装',
to: 'install',
},
{
label: '启动',
to: 'launch',
},
{
label: '接入',
to: 'connect',
},
{
label: '配置',
to: 'config',
},
],
},
{
label: '开发',
Expand Down Expand Up @@ -126,6 +107,17 @@ const themeConfig: ThemeConfig = {
},
],
},
{
label: 'v0.2',
position: 'right',
type: 'dropdown',
items: [
{
label: 'v0.1',
href: 'https://chronocat.vercel.app/v01',
},
],
},
{
href: 'https://github.com/chrononeko/chronocat',
html: '<svg style="width:24px;height:24px;display:block" viewBox="0 0 24 24"><path fill="currentColor" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z" /></svg>',
Expand All @@ -150,10 +142,6 @@ const themeConfig: ThemeConfig = {
label: '安装',
to: '/install',
},
{
label: '启动',
to: '/launch',
},
{
label: '接入',
to: '/connect',
Expand Down
11 changes: 8 additions & 3 deletions packages/docs/docs/faq/2/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ title: Chronocat 是什么?
sidebar_position: 2
---

Chronocat 是一个小巧轻便的 Red 实现。除了 Red
以外,Chronocat 还支持 Satori 等多种协议。目前,已经有多个框架可供接入
Chronocat,支持的框架可参见 [接入](/connect) 页面。
Chronocat 是一个模块化的 Satori 框架。

Chronocat 自身实现了 Satori 协议,但并不实现任何特定的功能;这些功能由 Chronocat
引擎提供。你可以安装不同的 Chronocat 引擎来使用各种功能。

目前,已经有多个框架可供接入
Chronocat,支持的框架可参见 [接入](/connect) 页面。你也可以使用该页面列举的 SDK
进行开发。
75 changes: 0 additions & 75 deletions packages/docs/docs/install/docker/community.mdx

This file was deleted.

23 changes: 0 additions & 23 deletions packages/docs/docs/install/docker/index.mdx

This file was deleted.

Binary file not shown.
77 changes: 0 additions & 77 deletions packages/docs/docs/install/docker/official/index.mdx

This file was deleted.

81 changes: 0 additions & 81 deletions packages/docs/docs/install/docker/official/reference.mdx

This file was deleted.

Loading

0 comments on commit 5107fd5

Please sign in to comment.