Skip to content

Commit

Permalink
deploy to dist
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed Aug 11, 2023
1 parent bb90a68 commit ff09db7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,13 @@ jobs:

- name: Build
run: yarn build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.WORKFLOW_TOKEN }}
publish_branch: dist
publish_dir: .vitepress/dist
force_orphan: true
enable_jekyll: true
commit_message: '[skip ci] deploy'
2 changes: 2 additions & 0 deletions zh-CN/guide/adapter/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
class ReplBot extends Bot {
constructor(ctx: Context, config: Config) {
super(ctx, config)
this.platform = 'repl'
this.selfId = 'koishi'
ctx.plugin(ReplAdapter, this)
}
}
Expand Down
2 changes: 2 additions & 0 deletions zh-CN/guide/adapter/bot.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
class ReplBot extends Bot {
constructor(ctx: Context, config: Config) {
super(ctx, config)
this.platform = 'repl'
this.selfId = 'koishi'
ctx.plugin(ReplAdapter, this)
}

Expand Down
5 changes: 3 additions & 2 deletions zh-CN/guide/adapter/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const Config: Schema<Config> = Schema.object({})
export default class ReplBot extends Bot {
constructor(ctx: Context, config: Config) {
super(ctx, config)
this.platform = 'repl'
this.selfId = 'koishi'
ctx.plugin(ReplAdapter, this)
}

Expand All @@ -72,12 +74,11 @@ export default class ReplAdapter extends Adapter.Server<ReplBot> {
})

async start(bot: ReplBot) {
bot.online()
this.rl.on('line', (line) => {
const session = bot.session({
type: 'message',
isDirect: true,
platform: 'repl',
userId: 'repl',
channelId: 'repl',
content: line,
})
Expand Down
2 changes: 1 addition & 1 deletion zh-CN/manual/console/adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ namespaces:
```
2. 将 `registry.yaml` 添加进你的服务器 (如 synapse 则使用 `app_service_config_files` 配置项来指向 `registry.yaml` 并重启服务器)
3. 在控制台中配置本插件,`host` 填入你的 homeserver 域名,`hs_token`, `as_token` 上述文件中的对应值,`id` 填入任意值 (需要与 `sender_localpart` 不同)
3. 在控制台中配置本插件,`host` 填入你的 Homeserver 域名,`hs_token`, `as_token` 上述文件中的对应值,`id` 填入任意值 (需要与 `sender_localpart` 不同)
4. 安装 [koishi-plugin-verifier](https://common.koishi.chat/plugins/verifier.html) (或其他自助通过群组邀请的插件)
5. 在房间中邀请机器人 (机器人的 ID 为 `@${id}:${host}`)

Expand Down
6 changes: 3 additions & 3 deletions zh-CN/plugins/adapter/matrix.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespaces:
```
2. 将 `registry.yaml` 添加进你的服务器 (如 synapse 则使用 `app_service_config_files` 配置项来指向 `registry.yaml` 并重启服务器)
3. 在控制台中配置本插件,`host` 填入你的 homeserver 域名,`hs_token`, `as_token` 上述文件中的对应值,`id` 填入任意值 (需要与 `sender_localpart` 不同)
3. 在控制台中配置本插件,`host` 填入你的 Homeserver 域名,`hs_token`, `as_token` 上述文件中的对应值,`id` 填入任意值 (需要与 `sender_localpart` 不同)
4. 安装 [koishi-plugin-verifier](https://common.koishi.chat/plugins/verifier.html) (或其他自助通过群组邀请的插件)
5. 在房间中邀请机器人 (机器人的 ID 为 `@${id}:${host}`)

Expand All @@ -37,7 +37,7 @@ namespaces:
- 类型: `string`
- 必需参数

你的 matrix homeserver 域名。
Matrix Homeserver 域名。

### options.hsToken

Expand All @@ -57,7 +57,7 @@ namespaces:

- 类型: `string`

你的 matrix homeserver 地址。默认为 `https://{host}`。
Matrix Homeserver 地址。默认为 `https://{host}`。

### options.name

Expand Down

0 comments on commit ff09db7

Please sign in to comment.