Skip to content

Commit

Permalink
docs: update package manager tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Yukiniro committed Dec 3, 2023
1 parent b3daf5f commit 7203662
Show file tree
Hide file tree
Showing 4 changed files with 3,321 additions and 6,650 deletions.
10 changes: 8 additions & 2 deletions site/docs/en/guide/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import { PackageManagerTabs } from "@theme";

## Installation

<PackageManagerTabs command="install toukey -S" />
<PackageManagerTabs
command={{
npm: "npm install toukey -S",
yarn: "yarn add toukey -S",
pnpm: "pnpm add toukey -S"
}}
/>

## Useage

Expand Down Expand Up @@ -113,7 +119,7 @@ subscribe("scope", defaultHandler, "default");
subscribe("scope", subHandler, { scope: "sub" });
```

#### Special Scope *
#### Special Scope \*

If `scope` is specified as `"*"`, the listener function will ignore the `scope` setting.

Expand Down
10 changes: 8 additions & 2 deletions site/docs/zh/guide/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ import { PackageManagerTabs } from "@theme";

## 安装

<PackageManagerTabs command="install toukey -S" />
<PackageManagerTabs
command={{
npm: "npm install toukey -S",
yarn: "yarn add toukey -S",
pnpm: "pnpm add toukey -S"
}}
/>

## 使用

Expand Down Expand Up @@ -113,7 +119,7 @@ subscribe("scope", defaultHandler, "default");
subscribe("scope", subHandler, { scope: "sub" });
```

#### 特殊作用域 *
#### 特殊作用域 \*

如果作用域设置为 `"*"`,监听函数将忽略作用域设置。

Expand Down
2 changes: 1 addition & 1 deletion site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"preview": "rspress preview"
},
"dependencies": {
"rspress": "^1.6.2"
"rspress": "^1.7.5"
},
"devDependencies": {
"@types/node": "^16"
Expand Down
Loading

0 comments on commit 7203662

Please sign in to comment.