Skip to content

Commit

Permalink
docs: fix new-radar
Browse files Browse the repository at this point in the history
  • Loading branch information
wudifeixue committed Mar 30, 2024
1 parent 3ef769e commit 0308925
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/joinus/new-radar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following document is the old version standard, please refer [/lib/types.ts#

:::

If you want to see the results, we suggest you install the browser extension. You can download it for your browser on the [Join Us](/joinus/quick-start#submit-new-rsshub-radar-rules-before-you-start) page.
If you want to see the results, we suggest you install the browser extension. You can download it for your browser on the [Join Us](/joinus/) page.

## Code the rule

Expand Down Expand Up @@ -117,7 +117,7 @@ The title is a *required* field and should be the same as the level 3 heading (`

The documentation link is also a *required* field. In this case, the documentation link for `GitHub Repo Issues` will be `https://docs.rsshub.app/routes/programming#github`.

Note that the hash should be positioned to the level 2 heading (`##`), and not `https://docs.rsshub.app/routes/programming#github-repo-issues`.
Note that the hash should be positioned to the level 2 heading (`##`), and not `https://docs.rsshub.app/routes/programming#repo-issues`.

### `source`

Expand Down Expand Up @@ -227,7 +227,7 @@ Here's an example radar rule that you can play with:
})
```

:::note Extra examples
:::note Other Examples

```js
({
Expand Down
6 changes: 3 additions & 3 deletions src/zh/joinus/new-radar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ sidebar_position: 3

:::

如果需要查看新规则的结果,建议您安装浏览器扩展程序。您可以在 [参与我们](/zh/joinus/quick-start#提交新的-rsshub-radar-规则) 页面下载适合您浏览器的扩展程序。
如果需要查看新规则的结果,建议您安装浏览器扩展程序。您可以在 [参与我们](/zh/joinus/) 页面下载适合您浏览器的扩展程序。

## 编写规则

要制作新的 RSSHub Radar 规则,需要在 `/lib/routes/` 目录下,相应的域名空间创建 `radar.ts` 文件。下面以制作 `GitHub 仓库 Issues` 的 RSS 源为例,详见此处。编写的代码应如下所示:
要制作新的 RSSHub Radar 规则,需要在 [/lib/routes/](https://github.com/DIYgod/RSSHub/tree/master/lib/routes) 目录下,相应的域名空间创建 `radar.ts` 文件。下面以制作 `GitHub 仓库 Issues` 的 RSS 源为例,详见[此处](/zh/joinus/new-rss/before-start)。编写的代码应如下所示:

```js
export default {
Expand Down Expand Up @@ -115,7 +115,7 @@ export default {

### `docs`

文档链接也是*必填*字段。在这种情况下,`GitHub 仓库 Issues` 的文档链接将是 `https://docs.rsshub.app/routes/programming#github`。请注意,URL hash 应位于二级标题 (`##`) 处,而不是三级标题 (`###`) `https://docs.rsshub.app/routes/programming#github-cang-ku-issues`
文档链接也是*必填*字段。在这种情况下,`GitHub 仓库 Issues` 的文档链接将是 `https://docs.rsshub.app/zh/routes/programming#github`。请注意,URL hash 应位于二级标题 (`##`) 处,而不是三级标题 (`###`) `https://docs.rsshub.app/zh/routes/programming#repo-issues`

### `source`

Expand Down

0 comments on commit 0308925

Please sign in to comment.