Skip to content

Commit c412c3c

Browse files
authored
docs: remove install using npm and yarn (#141)
1 parent 525205b commit c412c3c

4 files changed

Lines changed: 18 additions & 82 deletions

File tree

src/deploy/index.md

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -172,40 +172,16 @@ $ cd RSSHub
172172

173173
Execute the following commands to install dependencies
174174

175-
::: code-group
176-
177-
```bash [pnpm]
175+
```bash
178176
pnpm i
179177
```
180178

181-
```bash [yarn]
182-
yarn i
183-
```
184-
185-
```bash [npm]
186-
npm install
187-
```
188-
189-
:::
190-
191179
### Build
192180

193-
::: code-group
194-
195-
```bash [pnpm]
181+
```bash
196182
pnpm build
197183
```
198184

199-
```bash [yarn]
200-
yarn build
201-
```
202-
203-
```bash [npm]
204-
npm run build
205-
```
206-
207-
:::
208-
209185
### Launch
210186

211187
Under `RSSHub`'s root directory, execute the following commands to launch
@@ -216,16 +192,8 @@ Under `RSSHub`'s root directory, execute the following commands to launch
216192
pnpm start
217193
```
218194

219-
```bash [yarn]
220-
yarn start
221-
```
222-
223-
```bash [npm]
224-
npm run start
225-
```
226-
227195
```bash [pm2]
228-
pm2 start lib/index.ts --name rsshub
196+
pm2 start dist/index.mjs --name rsshub
229197
```
230198

231199
:::

src/guide/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ Apart from serving as an information source hub, RSSHub is also made compatible
2424

2525
::: code-group
2626

27-
```sh [npm]
28-
$ npm install rsshub --save
29-
```
30-
3127
```sh [pnpm]
3228
$ pnpm add rsshub
3329
```
3430

31+
```sh [bun]
32+
$ bun add rsshub
33+
```
34+
3535
```sh [yarn]
3636
$ yarn add rsshub
3737
```
3838

39-
```sh [bun]
40-
$ bun add rsshub
39+
```sh [npm]
40+
$ npm install rsshub --save
4141
```
4242

4343
:::

src/zh/deploy/index.md

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -165,40 +165,16 @@ $ cd RSSHub
165165

166166
下载完成后,需要安装依赖
167167

168-
::: code-group
169-
170-
```bash [pnpm]
168+
```bash
171169
pnpm i
172170
```
173171

174-
```bash [yarn]
175-
yarn i
176-
```
177-
178-
```bash [npm]
179-
npm install
180-
```
181-
182-
:::
183-
184172
### 编译
185173

186-
::: code-group
187-
188-
```bash [pnpm]
174+
```bash
189175
pnpm build
190176
```
191177

192-
```bash [yarn]
193-
yarn build
194-
```
195-
196-
```bash [npm]
197-
npm run build
198-
```
199-
200-
:::
201-
202178
### 启动
203179

204180
然后在 `RSSHub` 文件夹中运行下面的命令就可以启动
@@ -209,16 +185,8 @@ npm run build
209185
pnpm start
210186
```
211187

212-
```bash [yarn]
213-
yarn start
214-
```
215-
216-
```bash [npm]
217-
npm run start
218-
```
219-
220188
```bash [pm2]
221-
pm2 start lib/index.ts --name rsshub
189+
pm2 start dist/index.mjs --name rsshub
222190
```
223191

224192
:::

src/zh/guide/index.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,20 +24,20 @@ RSSHub 的发展离不开社区的力量,欢迎编写你感兴趣的订阅源
2424

2525
::: code-group
2626

27-
```sh [npm]
28-
$ npm install rsshub --save
29-
```
30-
3127
```sh [pnpm]
3228
$ pnpm add rsshub
3329
```
3430

31+
```sh [bun]
32+
$ bun add rsshub
33+
```
34+
3535
```sh [yarn]
3636
$ yarn add rsshub
3737
```
3838

39-
```sh [bun]
40-
$ bun add rsshub
39+
```sh [npm]
40+
$ npm install rsshub --save
4141
```
4242

4343
:::

0 commit comments

Comments
 (0)