feat: update examples
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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: [
|
||||
{
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user