fix: design tweaks to toasted skin, lint rule tweaks (#44)

This commit is contained in:
Sam Potts
2025-10-09 10:21:18 +11:00
committed by GitHub
parent 5cb93a14a7
commit 3a0767c340
34 changed files with 434 additions and 463 deletions
+3 -6
View File
@@ -92,8 +92,7 @@ export function findFirstGuide(
// Recursively search section contents
const guide = findFirstGuide(framework, style, item.contents);
if (guide) return guide;
}
else {
} else {
// It's a Guide, return its slug
return item.slug;
}
@@ -118,8 +117,7 @@ export function getAllGuideSlugs(sidebarToExtract: Sidebar = sidebar): string[]
if (isSection(item)) {
// Recursively get slugs from section contents
slugs.push(...getAllGuideSlugs(item.contents));
}
else {
} else {
// It's a Guide, add its slug
slugs.push(item.slug);
}
@@ -144,8 +142,7 @@ export function findGuideBySlug(
// Recursively search section contents
const guide = findGuideBySlug(slug, item.contents);
if (guide) return guide;
}
else if (item.slug === slug) {
} else if (item.slug === slug) {
// Found the guide
return item;
}