Skip to content

Commit

Permalink
feat: update github radars
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Dec 18, 2023
1 parent 08b8181 commit 2795847
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
24 changes: 12 additions & 12 deletions lib/v2/github/radar.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module.exports = {
_name: 'GitHub',
'.': [
{
title: '仓库 Branches',
title: 'Repo branches',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/branches', '/:user/:repo'],
target: '/github/branches/:user/:repo',
},
{
title: 'Issues / Pull Requests 评论',
title: 'Issues / Pull Requests comments',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/:type/:number'],
target: '/github/comments/:user/:repo/:number',
Expand All @@ -21,25 +21,25 @@ module.exports = {
target: '/github/comments/:user/:repo',
},
{
title: '仓库 Contributors',
title: 'Repo contributors',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/graphs/contributors', '/:user/:repo'],
target: '/github/contributors/:user/:repo',
},
{
title: '文件 Commits',
title: 'File commits',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: '/:user/:repo/blob/:branch/*filepath',
target: '/github/file/:user/:repo/:branch/:filepath',
},
{
title: '仓库 Issue',
title: 'Repo issues',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/issues', '/:user/:repo/issues/:id', '/:user/:repo'],
target: '/github/issue/:user/:repo',
},
{
title: '仓库 Pull Requests',
title: 'Repo Pull Requests',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/pulls', '/:user/:repo/pulls/:id', '/:user/:repo'],
target: '/github/pull/:user/:repo',
Expand All @@ -51,19 +51,19 @@ module.exports = {
target: '/github/pulse/:user/:repo/:period?',
},
{
title: '用户仓库',
title: 'User repos',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: '/:user',
target: '/github/repos/:user',
},
{
title: '仓库 Stars',
title: 'Repo stars',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/stargazers', '/:user/:repo'],
target: '/github/stars/:user/:repo',
},
{
title: '用户 Starred Repositories',
title: 'User starred repositories',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: '/:user',
target: '/github/starred_repos/:user',
Expand All @@ -81,19 +81,19 @@ module.exports = {
target: '/github/trending/:since',
},
{
title: '用户 Followers',
title: 'User followers',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: '/:user',
target: '/github/user/followers/:user',
},
{
title: 'Wiki 历史',
title: 'Wiki history',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/:user/:repo/wiki/:page/_history', '/:user/:repo/wiki/:page', '/:user/:repo/wiki/_history', '/:user/:repo/wiki'],
target: '/github/wiki/:user/:repo/:page',
},
{
title: 'Notifications 通知',
title: 'Notifications',
docs: 'https://docs.rsshub.app/routes/programming#github',
source: ['/notifications'],
target: '/github/notifications',
Expand Down
4 changes: 2 additions & 2 deletions website/docs/joinus/new-rss/add-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ To add documentation to your route, use the `Route` React component. It works li
### Keyword (Description with table)

```tsx
<Route author="DIYgod" example="/pixiv/search/麻衣/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['keyword', 'rank mode, empty or other for time order, `popular` for popular order, `date` by default', 'filte R18 content, see table below, empty by default']}>
<Route author="DIYgod" example="/pixiv/search/Nezuko/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['keyword', 'rank mode, empty or other for time order, `popular` for popular order, `date` by default', 'filte R18 content, see table below, empty by default']}>

| only not R18 | only R18 | no filter |
| ------------ | -------- | -------------- |
Expand All @@ -119,7 +119,7 @@ To add documentation to your route, use the `Route` React component. It works li

---

<Route author="DIYgod" example="/pixiv/search/麻衣/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['keyword', 'rank mode, empty or other for time order, `popular` for popular order, `date` by default', 'filte R18 content, see table below, empty by default']}>
<Route author="DIYgod" example="/pixiv/search/Nezuko/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['keyword', 'rank mode, empty or other for time order, `popular` for popular order, `date` by default', 'filte R18 content, see table below, empty by default']}>

| only not R18 | only R18 | no filter |
| ------------ | -------- | -------------- |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ pnpm run start
### 关键词(带表格的说明)

```tsx
<Route author="DIYgod" example="/pixiv/search/麻衣/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['关键词', '排序方式,`popular` 按热门度排序,空或其他任意值按时间排,默认为 `date`', '过滤方式,见下表 默认为空']}>
<Route author="DIYgod" example="/pixiv/search/Nezuko/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['关键词', '排序方式,`popular` 按热门度排序,空或其他任意值按时间排,默认为 `date`', '过滤方式,见下表 默认为空']}>

| 只看非 R18 内容 | 只看 R18 内容 | 不过滤 |
| ------------ | -------- | ------------ |
Expand All @@ -128,7 +128,7 @@ pnpm run start

---

<Route author="DIYgod" example="/pixiv/search/麻衣/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['关键词', '排序方式,`popular` 按热门度排序,空或其他任意值按时间排,默认为 `date`', '过滤方式,见下表 默认为空']}>
<Route author="DIYgod" example="/pixiv/search/Nezuko/popular/2" path="/pixiv/search/:keyword/:order?/:mode?" paramsDesc={['关键词', '排序方式,`popular` 按热门度排序,空或其他任意值按时间排,默认为 `date`', '过滤方式,见下表 默认为空']}>

| 只看非 R18 内容 | 只看 R18 内容 | 不过滤 |
| ------------ | -------- | ------------ |
Expand Down

0 comments on commit 2795847

Please sign in to comment.