Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(route/chinacdc/index): add link for index route #17999

Merged
merged 1 commit into from
Dec 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions lib/routes/chinacdc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export const handler = async (ctx: Context): Promise<Data> => {
return {
title,
description,
link: item.link,
pubDate: parseDate($$('span.fb em').text()),
content: {
html: description,
Expand Down Expand Up @@ -122,7 +123,7 @@ export const route: Route = {
handler,
example: '/chinacdc/zxyw',
parameters: {
category: '分类,默认为 `zxyw`,即中心要闻,可在对应分类页 URL 中找到, Category, `zxyw`,即中心要闻 by default',
category: '分类,默认为 `zxyw`,即中心要闻,可在对应分类页 URL 中找到Category, `zxyw`,即中心要闻 by default',
},
description: `:::tip
若订阅 [中心要闻](https://www.chinacdc.cn/zxyw/),网址为 \`https://www.chinacdc.cn/zxyw/\`,请截取 \`https://www.chinacdc.cn/\` 到末尾 \`/\` 的部分 \`zxyw\` 作为 \`category\` 参数填入,此时目标路由为 [\`/chinacdc/zxyw\`](https://rsshub.app/chinacdc/zxyw)。
Expand Down Expand Up @@ -169,7 +170,7 @@ export const route: Route = {

#### [全球公卫](https://www.chinacdc.cn/qqgw/)

| [合作伙伴](https://www.chinacdc.cn/qqgw/hzhb/) | [世界卫生组织合作中心和参比实验室](https://www.chinacdc.cn/qqgw/wszz/) | [国际交流(港澳台交流)](https://www.chinacdc.cn/qqgw/gjjl/) | [公共卫生援外与合作](https://www.chinacdc.cn/qqgw/ggws/) |
| [合作伙伴](https://www.chinacdc.cn/qqgw/hzhb/) | [世界卫生组织合作中心和参比实验室](https://www.chinacdc.cn/qqgw/wszz/) | [国际交流 (港澳台交流)](https://www.chinacdc.cn/qqgw/gjjl/) | [公共卫生援外与合作](https://www.chinacdc.cn/qqgw/ggws/) |
| -------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------- |
| [qqgw/hzhb](https://rsshub.app/chinacdc/qqgw/hzhb) | [qqgw/wszz](https://rsshub.app/chinacdc/qqgw/wszz) | [qqgw/gjjl](https://rsshub.app/chinacdc/qqgw/gjjl) | [qqgw/ggws](https://rsshub.app/chinacdc/qqgw/ggws) |

Expand Down Expand Up @@ -371,7 +372,7 @@ export const route: Route = {
target: '/qqgw/wszz',
},
{
title: '全球公卫 - 国际交流(港澳台交流)',
title: '全球公卫 - 国际交流 (港澳台交流)',
source: ['www.chinacdc.cn/qqgw/gjjl/'],
target: '/qqgw/gjjl',
},
Expand Down
Loading