fix(doc): route description in quick-start (#10221)

* fix(doc): quick start cn

* docs: fix corresponding en docs

* fix: also update radar rules quick-start
This commit is contained in:
SUPER
2022-07-14 23:39:16 +08:00
committed by GitHub
parent 878fc49339
commit 5af7a60064
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -21,11 +21,11 @@ First, `yarn` or `npm install` to install dependencies, then execute `yarn dev`
### Add route
Firstly, add a route in [/lib/router.js](https://github.com/DIYgod/RSSHub/blob/master/lib/router.js)
First, create the corresponding route path in [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2) and add the route in `/lib/v2/:path/router.js`
### Code the script
Create a new js script in [/lib/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) corresponding to route path
Create a new js script in the corresponding [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2/) path
#### Acquiring Data
@@ -492,7 +492,7 @@ Open browser's RSSHub Radar extension settings, switch to rules list, scroll dow
### Code the rule
Add rules to [/assets/radar-rules.js](https://github.com/DIYgod/RSSHub/blob/master/assets/radar-rules.js)
Create `radar.js` under the corresponding [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2) route and the rules
Simplified rules will be used for the following illustration:
+3 -3
View File
@@ -21,11 +21,11 @@ sidebar: auto
### 添加脚本路由
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 中创建对应路由路径,并在 `/lib/v2/routes/:path/router.js` 中添加路由
在 [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2) 中创建对应路由路径,并在 `/lib/v2/:path/router.js` 中添加路由
### 编写脚本
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 中的路由对应路径下创建新的 js 脚本:
在 [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2) 中的路由对应路径下创建新的 js 脚本:
#### 获取源数据
@@ -493,7 +493,7 @@ ctx.state.data = {
### 编写规则
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 的对应路由下创建 `radar.js` 并添加规则
在 [/lib/v2/](https://github.com/DIYgod/RSSHub/tree/master/lib/v2) 的对应路由下创建 `radar.js` 并添加规则
下面说明中会用到的简化的规则: