mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-05 12:21:31 +08:00
fix: build-routes
This commit is contained in:
@@ -20,7 +20,7 @@ export const route: Route = {
|
|||||||
supportScihub: false,
|
supportScihub: false,
|
||||||
},
|
},
|
||||||
radar: {
|
radar: {
|
||||||
source: ['mymusicsheet.com:username/*', 'mymusicsheet.com/:username'],
|
source: ['mymusicsheet.com/:username/*', 'mymusicsheet.com/:username'],
|
||||||
target: '/user/sheets/:username',
|
target: '/user/sheets/:username',
|
||||||
},
|
},
|
||||||
name: 'User Sheets',
|
name: 'User Sheets',
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ export const route: Route = {
|
|||||||
supportScihub: false,
|
supportScihub: false,
|
||||||
},
|
},
|
||||||
radar: {
|
radar: {
|
||||||
source: ['yuque.com:name/:book'],
|
source: ['yuque.com/:name/:book'],
|
||||||
},
|
},
|
||||||
name: '知识库',
|
name: '知识库',
|
||||||
maintainers: ['aha2mao', 'ltaoo'],
|
maintainers: ['aha2mao', 'ltaoo'],
|
||||||
|
|||||||
@@ -40,7 +40,7 @@ for (const namespace in namespaces) {
|
|||||||
}
|
}
|
||||||
radar[domain][subdomain].push({
|
radar[domain][subdomain].push({
|
||||||
title: data.name,
|
title: data.name,
|
||||||
docs: `https://docs.rsshub.app/routes/${data.categories[0] || 'other'}`,
|
docs: `https://docs.rsshub.app/routes/${data.categories?.[0] || 'other'}`,
|
||||||
source: data.radar.source.map((source) => {
|
source: data.radar.source.map((source) => {
|
||||||
const sourceURL = new URL('https://' + source);
|
const sourceURL = new URL('https://' + source);
|
||||||
return sourceURL.pathname + sourceURL.search + sourceURL.hash;
|
return sourceURL.pathname + sourceURL.search + sourceURL.hash;
|
||||||
|
|||||||
Reference in New Issue
Block a user