Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump to VuePress 2.0 #19

Merged
merged 20 commits into from
Jul 22, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .vuepress/config.js

This file was deleted.

48 changes: 48 additions & 0 deletions .vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
const { registerComponentsPlugin } = require('@vuepress/plugin-register-components')
const { path } = require('@vuepress/utils')
import { defineUserConfig } from 'vuepress'
const { defaultTheme } = require('@vuepress/theme-default')

export default defineUserConfig({
base: '/',
lang: 'zh-CN',
title: 'LittleSkin 社区机器人使用手册',
description: 'LittleSkin 社区机器人使用手册',
head: [['link', { rel: 'icon', href: '/favicon.png' }]],
theme: defaultTheme({
docsRepo: 'https://github.com/LittleSkinCommspt/commspt-bot-manual',
docsBranch: 'master',
editLinkPattern: ':repo/edit/:branch/:path',
editLinkText: '帮助我们完善这个页面',
lastUpdated: 'true',
lastUpdatedText: '上次更新',
sidebar: [
{
text: '欢迎页',
link: '/',
},
{
text: '条例',
link: '/tos.md',
},
{
text: '指令',
link: '/commands.md',
},
{
text: '功能',
link: '/functions.md',
},
{
text: 'TOS 违规公告',
link: '/hall-of-jail.md',
},
],
}),
plugins: [
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
],
evergreen: true,
})
2 changes: 1 addition & 1 deletion functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
## 敏感词检测
<Badge text="未实装" type="warning"/> 当群成员在群内发出的消息中含有敏感词列表中的词语时,将产生以下示例对话。敏感词无法在此文档中展示,如需了解请自行翻阅源码。
<panel-view title="敏感词检测">
<chat-message nickname="Alex" color="#cc0066">富强民主\<敏感词\>文明和谐</chat-message>
<chat-message nickname="Alex" color="#cc0066">富强民主\&lt;敏感词\>文明和谐</chat-message>
<chat-message nickname="Bot" :avatar="$withBase('/favicon.png')">请不要在此群中讨论有关话题!</chat-message>
</panel-view>

Expand Down
Loading