feat: buaa/sme适配新版路由规范 (#15154)

This commit is contained in:
Mean 2024-04-08 15:38:04 +08:00 committed by GitHub
parent 4e7f0c187e
commit 83fb4280a1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 33 additions and 2 deletions

View File

@ -9,9 +9,40 @@ const BASE_URL = 'http://www.sme.buaa.edu.cn';
export const route: Route = {
path: '/sme/:path{.+}?',
name: 'Unknown',
maintainers: [],
name: '集成电路科学与工程学院',
url: 'www.sme.buaa.edu.cn',
maintainers: ['MeanZhang'],
handler,
example: '/buaa/sme/tzgg',
parameters: {
path: '版块路径,默认为 `tzgg`(通知公告)',
},
description: `:::tip
\`path\`)应填写板块 URL 中 \`http://www.sme.buaa.edu.cn/\`\`.htm\` 之间的字段。
1. [](http://www.sme.buaa.edu.cn/tzgg.htm) 页面的 URL 为 \`http://www.sme.buaa.edu.cn/tzgg.htm\`,对应的路径参数为 \`tzgg\`,完整路由为 \`/buaa/sme/tzgg\`
2. [](http://www.sme.buaa.edu.cn/zsjy/jyxx.htm) 页面的 URL 为 \`http://www.sme.buaa.edu.cn/zsjy/jyxx.htm\`,对应的路径参数为 \`zsjy/jyxx\`,完整路由为 \`/buaa/sme/zsjy/jyxx\`。
:::
:::warning
[](http://www.sme.buaa.edu.cn/xygk/xyjs.htm)、[微纳中心](http://www.sme.buaa.edu.cn/wnzx.htm)、[院学生会](http://www.sme.buaa.edu.cn/xsgz/yxsh.htm))存在无内容、内容跳转至外站等情况,因此可能出现解析失败的现象。
:::`,
categories: ['university'],
features: {
requireConfig: false,
requirePuppeteer: false,
antiCrawler: false,
supportRadar: false,
supportBT: false,
supportPodcast: false,
supportScihub: false,
},
};
async function handler(ctx) {