diff --git a/build/maintainers.json b/build/maintainers.json index e401cecc1a..a4425eaf3d 100644 --- a/build/maintainers.json +++ b/build/maintainers.json @@ -4167,7 +4167,7 @@ "/gzhu/yjs": [ "shengmaosu" ], - "/hackernews/:section?/:type?/:user?": [ + "/hackernews/:section?/:type?/:value?": [ "nczitzk", "xie-dongping" ], diff --git a/build/radar-rules.js b/build/radar-rules.js index 0f94bccc83..719d3cfc54 100644 --- a/build/radar-rules.js +++ b/build/radar-rules.js @@ -10023,11 +10023,11 @@ "/" ], target:"/gzhu/yjs" } ] }, "ycombinator.com":{ _name:"Hacker News", - news:[ { title:"User", + news:[ { title:"Stories", docs:"https://docs.rsshub.app/routes/programming", source:[ "/:section", "/" ], - target:"/hackernews/:section?/:type?/:user?" } ] }, + target:"/hackernews/:section?/:type?/:value?" } ] }, "hacking8.com":{ _name:"Hacking8", ".":[ { title:"信息流", docs:"https://docs.rsshub.app/routes/programming", diff --git a/build/radar-rules.json b/build/radar-rules.json index 4775457692..96eea477f2 100644 --- a/build/radar-rules.json +++ b/build/radar-rules.json @@ -21859,13 +21859,13 @@ "_name": "Hacker News", "news": [ { - "title": "User", + "title": "Stories", "docs": "https://docs.rsshub.app/routes/programming", "source": [ "/:section", "/" ], - "target": "/hackernews/:section?/:type?/:user?" + "target": "/hackernews/:section?/:type?/:value?" } ] }, diff --git a/build/route-paths.ts b/build/route-paths.ts index 8be34f7987..29479c27fb 100644 --- a/build/route-paths.ts +++ b/build/route-paths.ts @@ -1348,7 +1348,7 @@ export type RoutePath = | `/gxmzu/yjszsgg` | `/gzdaily/app/:column?` | `/gzhu/yjs` - | `/hackernews/:section?/:type?/:user?` + | `/hackernews/:section?/:type?/:value?` | `/hackertalk/` | `/hacking8/:category?` | `/hacking8/search/:keyword?` diff --git a/build/routes.js b/build/routes.js index 228d8fe313..417235b01f 100644 --- a/build/routes.js +++ b/build/routes.js @@ -60412,8 +60412,8 @@ export default { }, "hackernews": { "routes": { - "/:section?/:type?/:user?": { - "path": "/:section?/:type?/:user?", + "/:section?/:type?/:value?": { + "path": "/:section?/:type?/:value?", "categories": [ "programming" ], @@ -60421,13 +60421,13 @@ export default { "example": "/hackernews/threads/comments_list/dang", "parameters": { "section": { - "description": "Content section, default to `index`" + "description": "Content section, default to `index`. Common sections: `index`, `newest`, `ask`, `show`, `jobs`, `over`, `threads`, `submitted`. Any valid HN section (e.g. `best`, `front`, `active`) is also accepted" }, "type": { - "description": "Link type, default to `sources`" + "description": "Content format, default to `sources`. `sources` links to original articles, `comments` fetches full comment threads, `comments_list` shows parent story with single comment" }, - "user": { - "description": "Set user, only valid in `threads` and `submitted` sections" + "value": { + "description": "For `threads`/`submitted` sections, set user ID. For `over` section, set minimum points threshold (default 100). For other sections, appended as `?id=` (e.g. `value=dang` → `?id=dang`)" } }, "features": { @@ -60446,12 +60446,12 @@ export default { ] } ], - "name": "User", + "name": "Stories", "maintainers": [ "nczitzk", "xie-dongping" ], - "description": "Subscribe to the content of a specific user", + "description": "Subscribe to Hacker News content by section, user, or minimum points\n\nExamples:\n\n| HN100 | User submitted | User threads | Comments list |\n| ----- | -------------- | ------------ | ------------- |\n| `/hackernews/over` | `/hackernews/submitted/sources/dang` | `/hackernews/threads/sources/dang` | `/hackernews/threads/comments_list/dang` |", "location": "index.ts", "module": () => import('@/routes/hackernews/index.ts') } diff --git a/build/routes.json b/build/routes.json index 6b9c9df659..9f81a1cc7f 100644 --- a/build/routes.json +++ b/build/routes.json @@ -60412,8 +60412,8 @@ }, "hackernews": { "routes": { - "/:section?/:type?/:user?": { - "path": "/:section?/:type?/:user?", + "/:section?/:type?/:value?": { + "path": "/:section?/:type?/:value?", "categories": [ "programming" ], @@ -60421,13 +60421,13 @@ "example": "/hackernews/threads/comments_list/dang", "parameters": { "section": { - "description": "Content section, default to `index`" + "description": "Content section, default to `index`. Common sections: `index`, `newest`, `ask`, `show`, `jobs`, `over`, `threads`, `submitted`. Any valid HN section (e.g. `best`, `front`, `active`) is also accepted" }, "type": { - "description": "Link type, default to `sources`" + "description": "Content format, default to `sources`. `sources` links to original articles, `comments` fetches full comment threads, `comments_list` shows parent story with single comment" }, - "user": { - "description": "Set user, only valid in `threads` and `submitted` sections" + "value": { + "description": "For `threads`/`submitted` sections, set user ID. For `over` section, set minimum points threshold (default 100). For other sections, appended as `?id=` (e.g. `value=dang` → `?id=dang`)" } }, "features": { @@ -60446,12 +60446,12 @@ ] } ], - "name": "User", + "name": "Stories", "maintainers": [ "nczitzk", "xie-dongping" ], - "description": "Subscribe to the content of a specific user", + "description": "Subscribe to Hacker News content by section, user, or minimum points\n\nExamples:\n\n| HN100 | User submitted | User threads | Comments list |\n| ----- | -------------- | ------------ | ------------- |\n| `/hackernews/over` | `/hackernews/submitted/sources/dang` | `/hackernews/threads/sources/dang` | `/hackernews/threads/comments_list/dang` |", "location": "index.ts", "module": "() => import('@/routes/hackernews/index.ts')" }