refactor(route): wsj news (#12087)

* feat(route): wsj news

* chore: docs update

* chore: docs update

* chore: use map to rewrite the function

* chore: update utils

* Update docs/en/traditional-media.md
---------
This commit is contained in:
Evan
2023-03-13 22:38:44 +08:00
committed by GitHub
parent 6f04affaa1
commit 633aec3dac
7 changed files with 177 additions and 146 deletions
+11 -1
View File
@@ -678,7 +678,17 @@ Provides all of the articles by the specified New York Times author.
### News
<RouteEn author="oppilate" example="/wsj/en-us/opinion" path="/wsj/:lang/:category?" :paramsDesc="['Language, `en-us`, `zh-cn`, `zh-tw` are supported', 'Category, only supported in `en-us`. Supports `opinion`, `world_news`, `us_bussiness`, `market_news`, `technology`, `lifestyle`.']">
<RouteEn author="oppilate NavePnow" example="/wsj/en-us/opinion" path="/wsj/:lang/:category?" :paramsDesc="['Language, `en-us`, `zh-cn`, `zh-tw`', 'Category. See below']">
en_us
| World | U.S. | Politics | Economy | Business | Tech | Markets | Opinion | Books & Arts | Real Estate | Life & Work | Sytle | Sports |
| ------ | ------- | -------- | -------- | ----- | --------- | --------- | --------- | --------- | --------- |--------- | --------- | --------- |
| world | us | politics | economy | business | technology | markets | opinion | books-arts | realestate | life-work | style-entertainment | sports |
zh-cn / zh-tw
| 国际 | 中国 | 金融市场 | 经济 | 商业 | 科技 | 派 | 专栏与观点 |
| ------ | ------- | -------- | -------- | ----- | --------- | --------- | --------- |
| world | china | markets | economy | business | technology | life-arts | opinion |
Provide full article RSS for WSJ topics.
+13 -1
View File
@@ -1182,7 +1182,19 @@ IT・科学 tech_science
### 新闻
<Route author="oppilate" example="/wsj/en-us/opinion" path="/wsj/:lang/:category?" :paramsDesc="['语言,支持 `en-us`、`zh-cn`、`zh-tw`', '分类,仅 `en-us` 支持分类订阅。支持 `opinion`, `world_news`, `us_bussiness`, `market_news`, `technology`, `lifestyle`。']">
<Route author="oppilate NavePnow" example="/wsj/en-us/opinion" path="/wsj/:lang/:category?" :paramsDesc="['语言,支持 `en-us`、`zh-cn`、`zh-tw`', '分类,见下表']">
en_us
| World | U.S. | Politics | Economy | Business | Tech | Markets | Opinion | Books & Arts | Real Estate | Life & Work | Sytle | Sports |
| ----- | ---- | -------- | ------- | -------- | ---------- | ------- | ------- | ------------ | ----------- | ----------- | ------------------- | ------ |
| world | us | politics | economy | business | technology | markets | opinion | books-arts | realestate | life-work | style-entertainment | sports |
zh-cn / zh-tw
| 国际 | 中国 | 金融市场 | 经济 | 商业 | 科技 | 派 | 专栏与观点 |
| ----- | ----- | ------- | ------- | -------- | ---------- | --------- | ------- |
| world | china | markets | economy | business | technology | life-arts | opinion |
通过提取文章全文,以提供比官方源更佳的阅读体验。