Files
RSSHub/lib/v2/oschina/radar.js
lin1005q 9a9bdd14f1 fix: 支持oschina更多地址直接显示正文 (#10509)
* 支持更多地址直接显示正文

* bug: Incomplete regular expression for hostnames

* refactor: migrate to v2

* docs: fix linebreak
2022-08-17 23:51:41 +08:00

34 lines
1.1 KiB
JavaScript

module.exports = {
'oschina.net': {
_name: '开源中国',
'.': [
{
title: '资讯',
docs: 'https://docs.rsshub.app/programming.html#kai-yuan-zhong-guo',
source: ['/news/:category'],
target: '/oschina/news/:category',
},
{
title: '问答主题',
docs: 'https://docs.rsshub.app/programming.html#kai-yuan-zhong-guo',
source: ['/question/topic/:topic'],
target: '/oschina/topic/:topic',
},
],
my: [
{
title: '用户博客',
docs: 'https://docs.rsshub.app/programming.html#kai-yuan-zhong-guo',
source: ['/:id'],
target: '/oschina/user/:id',
},
{
title: '数字型账号用户博客',
docs: 'https://docs.rsshub.app/programming.html#kai-yuan-zhong-guo',
source: ['/u/:uid'],
target: '/oschina/u/:uid',
},
],
},
};