docs: fix example namespace
This commit is contained in:
@@ -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/"',
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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*'],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -4,7 +4,7 @@ import { handler } from './common';
|
||||
|
||||
export const route: Route = {
|
||||
name: '头条资讯',
|
||||
path: ['/'],
|
||||
path: '/',
|
||||
example: '/cnbeta',
|
||||
radar: [
|
||||
{
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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' },
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 等等',
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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)。
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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: {
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -10,7 +10,7 @@ export const route: Route = {
|
||||
path: '/sports/:type?',
|
||||
name: '新浪体育',
|
||||
categories: ['sport'],
|
||||
example: '/sports',
|
||||
example: '/sina/sports',
|
||||
parameters: { type: '类别' },
|
||||
maintainers: ['nczitzk'],
|
||||
handler,
|
||||
|
||||
@@ -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: {},
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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/'],
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user