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 all 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.

56 changes: 56 additions & 0 deletions .vuepress/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
const { registerComponentsPlugin } = require('@vuepress/plugin-register-components')
const { searchPlugin } = require('@vuepress/plugin-search')
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: '帮助我们完善这个页面',
lastUpdatedText: '上次更新',
contributors: false,
sidebar: [
{
text: '欢迎页',
link: '/',
},
{
text: '条例',
link: '/tos.html',
},
{
text: '指令',
link: '/commands.html',
},
{
text: '功能',
link: '/functions.html',
},
{
text: 'TOS 违规公告',
link: '/hall-of-jail.html',
},
],
}),
plugins: [
registerComponentsPlugin({
componentsDir: path.resolve(__dirname, './components'),
}),
searchPlugin({
locales: {
'/': {
placeholder: '搜索',
},
},
}),
],
evergreen: true,
})
4 changes: 2 additions & 2 deletions commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@
- **`&log.launcher`** 引导用户导出启动器的日志

## &*.latest
- **`&java.latest`** 引导用户从 Mcbbs 镜像下载最新的 Java 版本
- **`&hmcl.latest`** 引导用户从 HMCL 的 Jenkins 下载最新的 HMCL 开发版
- **`&java.latest`** 引导用户从 BellSoft 下载最新的 Java 8 LTS
- **`&hmcl.latest`** 引导用户下载 HMCL 启动器
4 changes: 2 additions & 2 deletions functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
-->

## 生草复读机
当群成员在群内发出符合正则表达式 `^草*$` 的消息时,机器人将回复 `草\u202e`,`\u202e` 是一个 Unicode 控制字符(RLO),旨在防止 QQ 的 `+1`(~~禁止随地生草!~~)。
当群成员在群内发出符合正则表达式 `^草+$` 的消息时,机器人将回复 `草\u202e`,`\u202e` 是一个 Unicode 控制字符(RLO),旨在防止 QQ 的 `+1`(~~禁止随地生草!~~)。
<panel-view title="生草复读机">
<chat-message nickname="Alex" color="#cc0066">草草草</chat-message>
<chat-message nickname="Bot" :avatar="$withBase('/favicon.png')">草</chat-message>
Expand All @@ -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