From adbe1b59bb0043a04e1a0c6fc948048762814b4b Mon Sep 17 00:00:00 2001 From: Tony Date: Mon, 15 Jun 2026 04:27:54 +0800 Subject: [PATCH] docs: fix example namespace --- lib/routes/30secondsofcode/category.ts | 2 +- lib/routes/30secondsofcode/new-and-popular.ts | 2 +- lib/routes/abc/index.ts | 2 +- lib/routes/acgvinyl/news.ts | 2 +- lib/routes/air-level/levelrank.ts | 2 +- lib/routes/baai/hub.ts | 2 +- lib/routes/bsky/feeds.ts | 2 +- lib/routes/cara/likes.ts | 2 +- lib/routes/cara/portfolio.ts | 2 +- lib/routes/cara/timeline.ts | 2 +- lib/routes/chnmuseum/xingnew.ts | 2 +- lib/routes/chnmuseum/xwzt.ts | 2 +- lib/routes/cnbeta/category.ts | 2 +- lib/routes/cnbeta/index.ts | 2 +- lib/routes/cnbeta/topics.ts | 2 +- lib/routes/cohere/index.ts | 2 +- lib/routes/coolapk/tuwen.ts | 2 +- lib/routes/dedao/articles.ts | 2 +- lib/routes/dnaindia/news.ts | 2 +- lib/routes/dnaindia/topic.ts | 2 +- lib/routes/gisreportsonline/index.ts | 2 +- lib/routes/hedwig/posts.ts | 2 +- lib/routes/hupu/news.ts | 4 ++-- lib/routes/idaily/index.tsx | 2 +- lib/routes/joins/chinese.tsx | 2 +- lib/routes/kisskiss/blog.ts | 2 +- lib/routes/msn/index.ts | 2 +- lib/routes/nwnu/routes/college/csse.ts | 2 +- lib/routes/nwnu/routes/department/academic-affairs.ts | 2 +- lib/routes/nwnu/routes/department/postgraduate.ts | 2 +- lib/routes/qq/pd/guild.ts | 2 +- lib/routes/sankei/topics.ts | 2 +- lib/routes/shu/jwb.ts | 2 +- lib/routes/shu/society.ts | 2 +- lib/routes/sina/sports.ts | 2 +- lib/routes/stanford/blog.ts | 2 +- lib/routes/steam/news.ts | 2 +- lib/routes/towardsdatascience/latest.ts | 2 +- lib/routes/ximalaya/album.ts | 2 +- 39 files changed, 40 insertions(+), 40 deletions(-) diff --git a/lib/routes/30secondsofcode/category.ts b/lib/routes/30secondsofcode/category.ts index 71baa0a42..cd19f4b79 100644 --- a/lib/routes/30secondsofcode/category.ts +++ b/lib/routes/30secondsofcode/category.ts @@ -8,7 +8,7 @@ import { processList } from './utils'; export const route: Route = { path: '/category/:category?/:subCategory?', categories: ['programming'], - example: '/category/css/interactivity', + example: '/30secondsofcode/category/css/interactivity', parameters: { category: { description: 'Main Category. For Complete list visit site "https://www.30secondsofcode.org/collections/p/1/"', diff --git a/lib/routes/30secondsofcode/new-and-popular.ts b/lib/routes/30secondsofcode/new-and-popular.ts index 1ab63ca40..44896648e 100644 --- a/lib/routes/30secondsofcode/new-and-popular.ts +++ b/lib/routes/30secondsofcode/new-and-popular.ts @@ -8,7 +8,7 @@ import { processList, rootUrl } from './utils'; export const route: Route = { path: '/latest', categories: ['programming'], - example: '/latest', + example: '/30secondsofcode/latest', features: { requireConfig: false, requirePuppeteer: false, diff --git a/lib/routes/abc/index.ts b/lib/routes/abc/index.ts index 48d3e5dac..fe598d22f 100644 --- a/lib/routes/abc/index.ts +++ b/lib/routes/abc/index.ts @@ -9,7 +9,7 @@ import { renderDescription } from './templates/description'; export const route: Route = { path: '/:category{.+}?', - example: '/wa', + example: '/abc/wa', radar: [ { source: ['abc.net.au/:category*'], diff --git a/lib/routes/acgvinyl/news.ts b/lib/routes/acgvinyl/news.ts index 3a8f618f0..520d1ce6d 100644 --- a/lib/routes/acgvinyl/news.ts +++ b/lib/routes/acgvinyl/news.ts @@ -8,7 +8,7 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/news', categories: ['anime'], - example: '/news', + example: '/acgvinyl/news', features: { requireConfig: false, requirePuppeteer: false, diff --git a/lib/routes/air-level/levelrank.ts b/lib/routes/air-level/levelrank.ts index 856466be7..de24aca9b 100644 --- a/lib/routes/air-level/levelrank.ts +++ b/lib/routes/air-level/levelrank.ts @@ -4,7 +4,7 @@ import type { Route } from '@/types'; import ofetch from '@/utils/ofetch'; // 统一使用的请求库 export const route: Route = { - path: ['/rank/:status?'], + path: '/rank/:status?', radar: [ { source: ['m.air-level.com/rank/:status', 'm.air-level.com/rank'], diff --git a/lib/routes/baai/hub.ts b/lib/routes/baai/hub.ts index e0a39473c..aebae88db 100644 --- a/lib/routes/baai/hub.ts +++ b/lib/routes/baai/hub.ts @@ -8,7 +8,7 @@ import ofetch from '@/utils/ofetch'; import { apiHost, baseUrl, getTagsData, parseEventDetail, parseItem } from './utils'; export const route: Route = { - path: ['/hub/:tagId?/:sort?/:range?'], + path: '/hub/:tagId?/:sort?/:range?', categories: ['programming'], example: '/baai/hub', parameters: { diff --git a/lib/routes/bsky/feeds.ts b/lib/routes/bsky/feeds.ts index 1b60967c7..458c15747 100644 --- a/lib/routes/bsky/feeds.ts +++ b/lib/routes/bsky/feeds.ts @@ -10,7 +10,7 @@ export const route: Route = { path: '/profile/:handle/feed/:space/:routeParams?', categories: ['social-media'], view: ViewType.SocialMedia, - example: '/bsky.app/profile/jaz.bsky.social/feed/cv:cat', + example: '/bsky/profile/jaz.bsky.social/feed/cv:cat', parameters: { handle: 'User handle, can be found in URL', space: 'Space ID, can be found in URL', diff --git a/lib/routes/cara/likes.ts b/lib/routes/cara/likes.ts index e877cf30e..3b6b485e2 100644 --- a/lib/routes/cara/likes.ts +++ b/lib/routes/cara/likes.ts @@ -7,7 +7,7 @@ import type { PostsResponse } from './types'; import { customFetch, parseUserData } from './utils'; export const route: Route = { - path: ['/likes/:user'], + path: '/likes/:user', categories: ['social-media'], example: '/cara/likes/fengz', parameters: { user: 'username' }, diff --git a/lib/routes/cara/portfolio.ts b/lib/routes/cara/portfolio.ts index 48e57f2f7..bd7e1a12f 100644 --- a/lib/routes/cara/portfolio.ts +++ b/lib/routes/cara/portfolio.ts @@ -6,7 +6,7 @@ import type { PortfolioResponse } from './types'; import { customFetch, fetchPortfolioItem, parseUserData } from './utils'; export const route: Route = { - path: ['/portfolio/:user'], + path: '/portfolio/:user', categories: ['social-media'], example: '/cara/portfolio/fengz', parameters: { user: 'username' }, diff --git a/lib/routes/cara/timeline.ts b/lib/routes/cara/timeline.ts index 523d0b100..7e42e5ba3 100644 --- a/lib/routes/cara/timeline.ts +++ b/lib/routes/cara/timeline.ts @@ -7,7 +7,7 @@ import type { PostsResponse } from './types'; import { customFetch, parseUserData } from './utils'; export const route: Route = { - path: ['/timeline/:user'], + path: '/timeline/:user', categories: ['social-media'], example: '/cara/timeline/fengz', parameters: { user: 'username' }, diff --git a/lib/routes/chnmuseum/xingnew.ts b/lib/routes/chnmuseum/xingnew.ts index afccbdacb..cc234a046 100644 --- a/lib/routes/chnmuseum/xingnew.ts +++ b/lib/routes/chnmuseum/xingnew.ts @@ -9,7 +9,7 @@ import timezone from '@/utils/timezone'; export const route: Route = { path: '/zx/xingnew', categories: ['travel'], - example: '/zx/xingnew', + example: '/chnmuseum/zx/xingnew', parameters: {}, features: { requireConfig: false, diff --git a/lib/routes/chnmuseum/xwzt.ts b/lib/routes/chnmuseum/xwzt.ts index 719d91e62..1953957b3 100644 --- a/lib/routes/chnmuseum/xwzt.ts +++ b/lib/routes/chnmuseum/xwzt.ts @@ -6,7 +6,7 @@ import ofetch from '@/utils/ofetch'; export const route: Route = { path: '/zx/xwzt', categories: ['travel'], - example: '/zx/xwzt', + example: '/chnmuseum/zx/xwzt', parameters: {}, features: { requireConfig: false, diff --git a/lib/routes/cnbeta/category.ts b/lib/routes/cnbeta/category.ts index f2a916204..d7f53286c 100644 --- a/lib/routes/cnbeta/category.ts +++ b/lib/routes/cnbeta/category.ts @@ -4,7 +4,7 @@ import { handler } from './common'; export const route: Route = { name: '分类', - path: ['/category/:id'], + path: '/category/:id', example: '/cnbeta/category/movie', maintainers: ['nczitzk'], parameters: { diff --git a/lib/routes/cnbeta/index.ts b/lib/routes/cnbeta/index.ts index 2d1d8d94f..1900b9e2e 100644 --- a/lib/routes/cnbeta/index.ts +++ b/lib/routes/cnbeta/index.ts @@ -4,7 +4,7 @@ import { handler } from './common'; export const route: Route = { name: '头条资讯', - path: ['/'], + path: '/', example: '/cnbeta', radar: [ { diff --git a/lib/routes/cnbeta/topics.ts b/lib/routes/cnbeta/topics.ts index a2d986130..5aa977c03 100644 --- a/lib/routes/cnbeta/topics.ts +++ b/lib/routes/cnbeta/topics.ts @@ -4,7 +4,7 @@ import { handler } from './common'; export const route: Route = { name: '主题', - path: ['/topics/:id'], + path: '/topics/:id', example: '/cnbeta/topics/453', maintainers: ['cczhong11', 'nczitzk'], parameters: { diff --git a/lib/routes/cohere/index.ts b/lib/routes/cohere/index.ts index b0c52eef3..56cd6aa56 100644 --- a/lib/routes/cohere/index.ts +++ b/lib/routes/cohere/index.ts @@ -3,7 +3,7 @@ import ofetch from '@/utils/ofetch'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { - path: ['/blog'], + path: '/blog', name: 'Blog', url: 'cohere.com/blog', maintainers: ['Loongphy'], diff --git a/lib/routes/coolapk/tuwen.ts b/lib/routes/coolapk/tuwen.ts index 4b5b7130c..927affaee 100644 --- a/lib/routes/coolapk/tuwen.ts +++ b/lib/routes/coolapk/tuwen.ts @@ -4,7 +4,7 @@ import got from '@/utils/got'; import utils from './utils'; export const route: Route = { - path: ['/tuwen/:type?'], + path: '/tuwen/:type?', categories: ['social-media'], example: '/coolapk/tuwen', parameters: { type: '默认为hot' }, diff --git a/lib/routes/dedao/articles.ts b/lib/routes/dedao/articles.ts index aa618daa4..fab29eb49 100644 --- a/lib/routes/dedao/articles.ts +++ b/lib/routes/dedao/articles.ts @@ -7,7 +7,7 @@ import got from '@/utils/got'; export const route: Route = { path: '/articles/:id?', categories: ['new-media'], - example: '/articles/9', // 示例路径更新 + example: '/dedao/articles/9', parameters: { id: '文章类型 ID,8 为得到头条,9 为得到精选,默认为 8' }, features: { requireConfig: false, diff --git a/lib/routes/dnaindia/news.ts b/lib/routes/dnaindia/news.ts index 51191db28..80c055e6c 100644 --- a/lib/routes/dnaindia/news.ts +++ b/lib/routes/dnaindia/news.ts @@ -5,7 +5,7 @@ import { handler } from './common'; export const route: Route = { name: 'News', maintainers: ['Rjnishant530'], - path: ['/:category'], + path: '/:category', example: '/dnaindia/headlines', parameters: { category: 'Find it in the URL, or tables below', diff --git a/lib/routes/dnaindia/topic.ts b/lib/routes/dnaindia/topic.ts index 0a20bee67..bf3f6d804 100644 --- a/lib/routes/dnaindia/topic.ts +++ b/lib/routes/dnaindia/topic.ts @@ -5,7 +5,7 @@ import { handler } from './common'; export const route: Route = { name: 'Topic', maintainers: ['Rjnishant530'], - path: ['/topic/:topic'], + path: '/topic/:topic', example: '/dnaindia/topic/dna-verified', parameters: { category: 'Find it in the URL', diff --git a/lib/routes/gisreportsonline/index.ts b/lib/routes/gisreportsonline/index.ts index ca09d87d6..ff0724b3b 100644 --- a/lib/routes/gisreportsonline/index.ts +++ b/lib/routes/gisreportsonline/index.ts @@ -8,7 +8,7 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/:path{.+}?', categories: ['new-media'], - example: '/gis/c/security-challenges/', + example: '/gisreportsonline/gis/c/security-challenges/', parameters: { path: '包含"Reports"页面下的路径' }, name: '报告', maintainers: ['dzx-dzx'], diff --git a/lib/routes/hedwig/posts.ts b/lib/routes/hedwig/posts.ts index b6d83a11e..4803fa58e 100644 --- a/lib/routes/hedwig/posts.ts +++ b/lib/routes/hedwig/posts.ts @@ -16,7 +16,7 @@ const md = MarkdownIt({ export const route: Route = { path: '/posts/:site', categories: ['blog'], - example: '/posts/walnut', + example: '/hedwig/posts/walnut', parameters: { site: '站点名,原则上只要是 `{site}.hedwig.pub` 都可以匹配' }, features: { supportRadar: false, diff --git a/lib/routes/hupu/news.ts b/lib/routes/hupu/news.ts index 633cbeea0..ae07a715c 100644 --- a/lib/routes/hupu/news.ts +++ b/lib/routes/hupu/news.ts @@ -7,11 +7,11 @@ import { NBA_TEAMS_ID_MAP } from './consts'; import { getEntryDetails } from './utils'; export const route: Route = { - path: ['/news/:team'], + path: '/news/:team', name: '队伍新闻', url: 'm.hupu.com', maintainers: ['hyoban'], - example: '/news/Spurs', + example: '/hupu/news/Spurs', parameters: { team: { description: '全小写的英文队名,例如:spurs, lakers, warriors 等等', diff --git a/lib/routes/idaily/index.tsx b/lib/routes/idaily/index.tsx index 9b920874f..4b5903e88 100644 --- a/lib/routes/idaily/index.tsx +++ b/lib/routes/idaily/index.tsx @@ -6,7 +6,7 @@ import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { - path: ['/:language?'], + path: '/:language?', name: '每日环球视野', example: '/idaily', maintainers: ['zphw', 'nczitzk'], diff --git a/lib/routes/joins/chinese.tsx b/lib/routes/joins/chinese.tsx index 72fa4e884..6583b106a 100644 --- a/lib/routes/joins/chinese.tsx +++ b/lib/routes/joins/chinese.tsx @@ -106,7 +106,7 @@ export const route: Route = { url: 'chinese.joins.com', maintainers: ['nczitzk'], handler, - example: '/chinese', + example: '/joins/chinese', parameters: { category: '分类,默认为空,可在对应分类页 URL 中找到 `sc_section_code`' }, description: `::: tip 若订阅 [财经](https://chinese.joins.com/news/articleList.html?sc_section_code=S1N1),网址为 \`https://chinese.joins.com/news/articleList.html?sc_section_code=S1N1\`。截取 \`sc_section_code\` 的值作为参数填入,此时路由为 [\`/joins/chinese/S1N1\`](https://rsshub.app/joins/chinese/S1N1)。 diff --git a/lib/routes/kisskiss/blog.ts b/lib/routes/kisskiss/blog.ts index 30cb72acc..5afe0fe9b 100644 --- a/lib/routes/kisskiss/blog.ts +++ b/lib/routes/kisskiss/blog.ts @@ -10,7 +10,7 @@ const baseUrl = 'https://www.kisskiss.tv/kiss/diary.php'; export const route: Route = { path: '/blog/:category?', categories: ['game'], - example: '/blog/DLC', + example: '/kisskiss/blog/DLC', parameters: { category: 'category' }, features: { requireConfig: false, diff --git a/lib/routes/msn/index.ts b/lib/routes/msn/index.ts index a74dc9a7a..001601730 100644 --- a/lib/routes/msn/index.ts +++ b/lib/routes/msn/index.ts @@ -16,7 +16,7 @@ export const route: Route = { id: 'ID of the channel (always starts with sr-vid). Find it in MSN url, e.g. sr-vid-08gw7ky4u229xjsjvnf4n6n7v67gxm0pjmv9fr4y2x9jjmwcri4s', }, categories: ['traditional-media'], - example: '/zh-tw/Bloomberg/sr-vid-08gw7ky4u229xjsjvnf4n6n7v67gxm0pjmv9fr4y2x9jjmwcri4s', + example: '/msn/zh-tw/Bloomberg/sr-vid-08gw7ky4u229xjsjvnf4n6n7v67gxm0pjmv9fr4y2x9jjmwcri4s', description: 'MSN News', features: { requireConfig: false, diff --git a/lib/routes/nwnu/routes/college/csse.ts b/lib/routes/nwnu/routes/college/csse.ts index 6098a0739..96c63e4e5 100644 --- a/lib/routes/nwnu/routes/college/csse.ts +++ b/lib/routes/nwnu/routes/college/csse.ts @@ -117,7 +117,7 @@ export const route: Route = { supportPodcast: false, supportScihub: false, }, - example: '/college/csse/2435', + example: '/nwnu/college/csse/2435', radar: [ { source: ['jsj.nwnu.edu.cn/:column/list'], diff --git a/lib/routes/nwnu/routes/department/academic-affairs.ts b/lib/routes/nwnu/routes/department/academic-affairs.ts index 6eefe54be..e915ff168 100644 --- a/lib/routes/nwnu/routes/department/academic-affairs.ts +++ b/lib/routes/nwnu/routes/department/academic-affairs.ts @@ -102,7 +102,7 @@ export const route: Route = { supportPodcast: false, supportScihub: false, }, - example: '/department/academic-affairs/tzgg', + example: '/nwnu/department/academic-affairs/tzgg', radar: [ { source: ['jwc.nwnu.edu.cn/:column/list.htm'], diff --git a/lib/routes/nwnu/routes/department/postgraduate.ts b/lib/routes/nwnu/routes/department/postgraduate.ts index 78f6a9c12..8eba026c1 100644 --- a/lib/routes/nwnu/routes/department/postgraduate.ts +++ b/lib/routes/nwnu/routes/department/postgraduate.ts @@ -122,7 +122,7 @@ export const route: Route = { supportPodcast: false, supportScihub: false, }, - example: '/department/postgraduate/2701', + example: '/nwnu/department/postgraduate/2701', radar: [ { source: ['yjsy.nwnu.edu.cn/:column/list.htm'], diff --git a/lib/routes/qq/pd/guild.ts b/lib/routes/qq/pd/guild.ts index a56733d7b..da3687377 100644 --- a/lib/routes/qq/pd/guild.ts +++ b/lib/routes/qq/pd/guild.ts @@ -21,7 +21,7 @@ const sortMap = { }; export const route: Route = { - path: ['/pd/guild/:id/:sub?/:sort?'], + path: '/pd/guild/:id/:sub?/:sort?', categories: ['bbs'], example: '/qq/pd/guild/qrp4pkq01d/650967831/created', parameters: { diff --git a/lib/routes/sankei/topics.ts b/lib/routes/sankei/topics.ts index 6c8d1557f..6e18c714e 100644 --- a/lib/routes/sankei/topics.ts +++ b/lib/routes/sankei/topics.ts @@ -7,7 +7,7 @@ import got from '@/utils/got'; import { parseDate } from '@/utils/parse-date'; export const route: Route = { - path: ['/topics/:topic'], + path: '/topics/:topic', categories: ['traditional-media'], example: '/sankei/topics/etc_100', parameters: { diff --git a/lib/routes/shu/jwb.ts b/lib/routes/shu/jwb.ts index 3c072ccd0..ab5bd7601 100644 --- a/lib/routes/shu/jwb.ts +++ b/lib/routes/shu/jwb.ts @@ -13,7 +13,7 @@ const alias = new Map([ ]); export const route: Route = { - path: ['/jwb/:type?'], + path: '/jwb/:type?', radar: [ { source: ['www.shu.edu.cn/index'], diff --git a/lib/routes/shu/society.ts b/lib/routes/shu/society.ts index 3e32376bd..e622fa897 100644 --- a/lib/routes/shu/society.ts +++ b/lib/routes/shu/society.ts @@ -7,7 +7,7 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/journals/society/current', categories: ['journal'], - example: '/journals/society/current', + example: '/shu/journals/society/current', features: { requireConfig: false, requirePuppeteer: false, diff --git a/lib/routes/sina/sports.ts b/lib/routes/sina/sports.ts index d24defbbf..6aa740db3 100644 --- a/lib/routes/sina/sports.ts +++ b/lib/routes/sina/sports.ts @@ -10,7 +10,7 @@ export const route: Route = { path: '/sports/:type?', name: '新浪体育', categories: ['sport'], - example: '/sports', + example: '/sina/sports', parameters: { type: '类别' }, maintainers: ['nczitzk'], handler, diff --git a/lib/routes/stanford/blog.ts b/lib/routes/stanford/blog.ts index cc7769803..03f10a652 100644 --- a/lib/routes/stanford/blog.ts +++ b/lib/routes/stanford/blog.ts @@ -7,7 +7,7 @@ import { parseDate } from '@/utils/parse-date'; import timezone from '@/utils/timezone'; export const route: Route = { - path: ['/hazyresearch/blog'], + path: '/hazyresearch/blog', categories: ['blog'], example: '/stanford/hazyresearch/blog', parameters: {}, diff --git a/lib/routes/steam/news.ts b/lib/routes/steam/news.ts index ed6894e80..c5490ff54 100644 --- a/lib/routes/steam/news.ts +++ b/lib/routes/steam/news.ts @@ -14,7 +14,7 @@ export const route: Route = { url: 'steamcommunity.com', maintainers: ['keocheung'], handler, - example: '/news/958260/english', + example: '/steam/news/958260/english', parameters: { appid: 'Game App ID, all digits, can be found in the URL', language: 'Language, english by default, see below for more languages', diff --git a/lib/routes/towardsdatascience/latest.ts b/lib/routes/towardsdatascience/latest.ts index 22eb9712c..07bcbd93c 100644 --- a/lib/routes/towardsdatascience/latest.ts +++ b/lib/routes/towardsdatascience/latest.ts @@ -8,7 +8,7 @@ import { parseDate } from '@/utils/parse-date'; export const route: Route = { path: '/latest', categories: ['blog'], - example: '/latest', + example: '/towardsdatascience/latest', radar: [ { source: ['towardsdatascience.com/'], diff --git a/lib/routes/ximalaya/album.ts b/lib/routes/ximalaya/album.ts index 79ab3cef0..e2be5b5b9 100644 --- a/lib/routes/ximalaya/album.ts +++ b/lib/routes/ximalaya/album.ts @@ -50,7 +50,7 @@ function judgeTrue(str, ...validStrings) { } export const route: Route = { - path: ['/:type/:id/:all/:shownote?'], + path: '/:type/:id/:all/:shownote?', categories: ['multimedia'], example: '/ximalaya/album/299146', parameters: {