mirror of
https://github.com/DIYgod/RSSHub.git
synced 2025-12-07 21:47:57 +08:00
chore: add typo check in build routes
This commit is contained in:
@@ -94,7 +94,11 @@ function generateMd(lang) {
|
|||||||
const md = {};
|
const md = {};
|
||||||
for (const category in docs) {
|
for (const category in docs) {
|
||||||
const nameObj = categories.find((c) => c.link.includes(category));
|
const nameObj = categories.find((c) => c.link.includes(category));
|
||||||
md[category] = `# ${`${nameObj!.icon} ${nameObj![lang]}`}\n\n`;
|
if (!nameObj) {
|
||||||
|
throw new Error(`Category not found: ${category}, please double check your spelling.`);
|
||||||
|
}
|
||||||
|
|
||||||
|
md[category] = `# ${`${nameObj.icon} ${nameObj[lang]}`}\n\n`;
|
||||||
|
|
||||||
const namespaces = Object.keys(docs[category]).sort((a, b) => {
|
const namespaces = Object.keys(docs[category]).sort((a, b) => {
|
||||||
const aname = docs[category][a].name[0];
|
const aname = docs[category][a].name[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user