feat: update examples

This commit is contained in:
DIYgod
2024-07-22 13:24:26 +08:00
parent b23bb63229
commit 9020861509
8 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import { hash } from './utils';
export const route: Route = {
path: '/build/:owner/:image/:tag?',
categories: ['program-update', 'popular'],
example: '/dockerhub/build/wangqiru/ttrss',
example: '/dockerhub/build/diygod/rsshub',
parameters: {
owner: 'Image owner, the owner of the official image fills in the library, for example: /dockerhub/build/library/mysql',
image: 'Image name',
+1 -1
View File
@@ -12,7 +12,7 @@ import { parseDate } from '@/utils/parse-date';
export const route: Route = {
path: '/issue/:user/:repo/:state?/:labels?',
categories: ['programming', 'popular'],
example: '/github/issue/vuejs/core/all/wontfix',
example: '/github/issue/DIYgod/RSSHub/open',
parameters: {
user: 'GitHub username',
repo: 'GitHub repo name',
+17 -1
View File
@@ -60,7 +60,23 @@ export const route: Route = {
path: '/:category/:key',
categories: ['social-media', 'popular'],
example: '/instagram/user/stefaniejoosten',
parameters: { category: 'Feed category, see table above', key: 'Username / Hashtag name' },
parameters: {
category: {
description: 'Feed category',
default: 'user',
options: [
{
label: 'User',
value: 'user',
},
{
label: 'Tags',
value: 'tags',
},
],
},
key: 'Username / Hashtag name',
},
features: {
requireConfig: [
{
+1 -1
View File
@@ -5,7 +5,7 @@ import ofetch from '@/utils/ofetch';
export const route: Route = {
path: '/:account/:network?/:tag?',
categories: ['social-media'],
example: '/rss3/diygod.eth',
example: '/rss3/vitalik.eth',
name: 'Account Activities',
maintainers: ['DIYgod'],
url: 'docs.rss3.io/api-reference#tag/decentralized/GET/decentralized/%7Baccount%7D',
+1 -1
View File
@@ -58,7 +58,7 @@ const mediaTagDict = {
export const route: Route = {
path: '/channel/:username/:routeParams?',
categories: ['social-media', 'popular'],
example: '/telegram/channel/awesomeDIYgod/searchQuery=twitter',
example: '/telegram/channel/awesomeRSSHub',
parameters: {
username: 'channel username',
routeParams: `extra parameters, see the table below
+1 -1
View File
@@ -5,7 +5,7 @@ import utils from './utils';
export const route: Route = {
path: '/media/:id/:routeParams?',
categories: ['social-media', 'popular'],
example: '/twitter/media/DIYgod',
example: '/twitter/media/_RSSHub',
parameters: { id: 'username; in particular, if starts with `+`, it will be recognized as a [unique ID](https://github.com/DIYgod/RSSHub/issues/12221), e.g. `+44196397`', routeParams: 'extra parameters, see the table above.' },
features: {
requireConfig: [
+1 -1
View File
@@ -5,7 +5,7 @@ import api from './api';
export const route: Route = {
path: '/user/:id/:routeParams?',
categories: ['social-media', 'popular'],
example: '/twitter/user/DIYgod',
example: '/twitter/user/_RSSHub',
parameters: {
id: 'username; in particular, if starts with `+`, it will be recognized as a [unique ID](https://github.com/DIYgod/RSSHub/issues/12221), e.g. `+44196397`',
routeParams:
+1 -1
View File
@@ -10,7 +10,7 @@ import { config } from '@/config';
export const route: Route = {
path: '/keyword/:keyword/:routeParams?',
categories: ['social-media', 'popular'],
example: '/weibo/keyword/DIYgod',
example: '/weibo/keyword/RSSHub',
parameters: { keyword: '你想订阅的微博关键词', routeParams: '额外参数;请参阅上面的说明和表格' },
features: {
requireConfig: false,