From 0c8d6f05bfb438f7aba72e863e75dbbc822d9f27 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 9 Mar 2024 03:31:18 +0800 Subject: [PATCH] fix: build-routes --- lib/routes/mymusicsheet/usersheets.ts | 2 +- lib/routes/yuque/book.ts | 2 +- scripts/workflow/build-routes.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/mymusicsheet/usersheets.ts b/lib/routes/mymusicsheet/usersheets.ts index 76d57ce74..f19360ff0 100644 --- a/lib/routes/mymusicsheet/usersheets.ts +++ b/lib/routes/mymusicsheet/usersheets.ts @@ -20,7 +20,7 @@ export const route: Route = { supportScihub: false, }, radar: { - source: ['mymusicsheet.com:username/*', 'mymusicsheet.com/:username'], + source: ['mymusicsheet.com/:username/*', 'mymusicsheet.com/:username'], target: '/user/sheets/:username', }, name: 'User Sheets', diff --git a/lib/routes/yuque/book.ts b/lib/routes/yuque/book.ts index f324401c8..a94b59861 100644 --- a/lib/routes/yuque/book.ts +++ b/lib/routes/yuque/book.ts @@ -23,7 +23,7 @@ export const route: Route = { supportScihub: false, }, radar: { - source: ['yuque.com:name/:book'], + source: ['yuque.com/:name/:book'], }, name: '知识库', maintainers: ['aha2mao', 'ltaoo'], diff --git a/scripts/workflow/build-routes.ts b/scripts/workflow/build-routes.ts index 3ec8c3732..61e011b48 100644 --- a/scripts/workflow/build-routes.ts +++ b/scripts/workflow/build-routes.ts @@ -40,7 +40,7 @@ for (const namespace in namespaces) { } radar[domain][subdomain].push({ 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) => { const sourceURL = new URL('https://' + source); return sourceURL.pathname + sourceURL.search + sourceURL.hash;