Skip to content

Commit

Permalink
chore(route): add more social media popular routes
Browse files Browse the repository at this point in the history
  • Loading branch information
pseudoyu committed Nov 26, 2024
1 parent fa1dcc5 commit 755a732
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/routes/google/news.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const baseUrl = 'https://news.google.com';

export const route: Route = {
path: '/news/:category/:locale',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/google/news/Top stories/hl=en-US&gl=US&ceid=US:en',
parameters: { category: 'Category Title', locale: 'locales, could be found behind `?`, including `hl`, `gl`, and `ceid` as parameters' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/grist/featured.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { load } from 'cheerio';

export const route: Route = {
path: '/featured',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/grist/featured',
parameters: {},
features: {
Expand Down
5 changes: 4 additions & 1 deletion lib/routes/grist/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ export const route: Route = {
source: ['grist.org/articles/'],
},
],
name: 'Unknown',
name: 'Latest Articles',
maintainers: ['Rjnishant530'],
categories: ['new-media', 'popular'],
example: '/grist',
parameters: {},
handler,
url: 'grist.org/articles/',
};
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/grist/series.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getData, getList } from './utils';

export const route: Route = {
path: '/series/:series',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/grist/series/best-of-grist',
parameters: { series: 'Find in the URL which has /series/' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/grist/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { getData, getList } from './utils';

export const route: Route = {
path: '/topic/:topic',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/grist/topic/extreme-heat',
parameters: { topic: 'Any Topic from Table below' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/harvard/health/blog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { parseDate } from '@/utils/parse-date';

export const route: Route = {
path: '/health/blog',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/harvard/health/blog',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/hkepc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { baseUrl, categoryMap } from './data';

export const route: Route = {
path: '/:category?',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/hkepc/news',
parameters: { category: '分类,见下表,默认为最新消息' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/infoq/presentations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const route: Route = {
If you subscribe to [InfoQ Live Jan 2024](https://www.infoq.com/infoq-live-jan-2024/presentations/),where the URL is \`https://www.infoq.com/infoq-live-jan-2024/presentations/\`, extract the part \`https://www.infoq.com/\` to the end, which is \`/presentations/\`, and use it as the parameter to fill in. Therefore, the route will be [\`/infoq/presentations/infoq-live-jan-2024\`](https://rsshub.app/infoq/presentations/infoq-live-jan-2024).
:::
`,
categories: ['programming'],
categories: ['programming', 'popular'],

features: {
requireConfig: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/infoq/recommend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import utils from './utils';

export const route: Route = {
path: '/recommend',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/infoq/recommend',
parameters: {},
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/infoq/topic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import utils from './utils';

export const route: Route = {
path: '/topic/:id',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/infoq/topic/1',
parameters: { id: '话题id,可在 [InfoQ全部话题](https://www.infoq.cn/topics) 页面找到URL里的话题id' },
features: {
Expand Down
2 changes: 1 addition & 1 deletion lib/routes/informedainews/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import cache from '@/utils/cache';

export const route: Route = {
path: '/zh-Hans/docs/:type',
categories: ['new-media'],
categories: ['new-media', 'popular'],
example: '/informedainews/zh-Hans/docs/world-news-daily',
parameters: { type: 'world-news-daily|tech-enthusiast-weekly|ai-enthusiast-daily' },
features: {
Expand Down

0 comments on commit 755a732

Please sign in to comment.