feat(route): add slowmist news (#10044)
* feat(route): add slowmist news * feat(utils): remove useless ul for code section * docs: add slowmist news route docs * docs(quick-start): new router under /lib/v2 * test(utils): add test fixArticleContent for new wechat-mp code * feat(router): update radar source of slowmist
This commit is contained in:
@@ -21,11 +21,11 @@ sidebar: auto
|
||||
|
||||
### 添加脚本路由
|
||||
|
||||
在 [/lib/router.js](https://github.com/DIYgod/RSSHub/blob/master/lib/router.js) 里添加路由
|
||||
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 中创建对应路由路径,并在 `/lib/v2/routes/:path/router.js` 中添加路由
|
||||
|
||||
### 编写脚本
|
||||
|
||||
在 [/lib/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 中的路由对应路径下创建新的 js 脚本:
|
||||
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 中的路由对应路径下创建新的 js 脚本:
|
||||
|
||||
#### 获取源数据
|
||||
|
||||
@@ -493,7 +493,7 @@ ctx.state.data = {
|
||||
|
||||
### 编写规则
|
||||
|
||||
在 [/assets/radar-rules.js](https://github.com/DIYgod/RSSHub/blob/master/assets/radar-rules.js) 里添加规则
|
||||
在 [/lib/v2/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 的对应路由下创建 `radar.js` 并添加规则
|
||||
|
||||
下面说明中会用到的简化的规则:
|
||||
|
||||
|
||||
@@ -2666,6 +2666,18 @@ column 为 third 时可选的 category:
|
||||
|
||||
</Route>
|
||||
|
||||
## 慢雾科技
|
||||
|
||||
### 动态
|
||||
|
||||
<Route author="AtlasQuan" example="/slowmist/research" path="/slowmist/:type?" :paramsDesc="['分类,见下表,默认为公司新闻']">
|
||||
|
||||
| 公司新闻 | 漏洞披露 | 技术研究 |
|
||||
| ---- | ---- | -------- |
|
||||
| news | vul | research |
|
||||
|
||||
</Route>
|
||||
|
||||
## 梅花网
|
||||
|
||||
### 作品
|
||||
|
||||
Reference in New Issue
Block a user