diff --git a/docs/en/joinus/quick-start.md b/docs/en/joinus/quick-start.md index 295e4b075..423504881 100644 --- a/docs/en/joinus/quick-start.md +++ b/docs/en/joinus/quick-start.md @@ -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: diff --git a/docs/joinus/quick-start.md b/docs/joinus/quick-start.md index ed972fed4..a55228bb7 100644 --- a/docs/joinus/quick-start.md +++ b/docs/joinus/quick-start.md @@ -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` 并添加规则 下面说明中会用到的简化的规则: