- {CATALOG_CATEGORIES.slice(1).map((category) => (
+ {PRIMARY_CATALOG_CATEGORIES.map((category) => (
+
- {CATALOG_CATEGORIES.map((category) => (
+ {CATALOG_FILTER_CATEGORIES.map((category) => (
+ >{category === SILENT_SERVO_CATEGORY ? `${category} · ${SILENT_SERVO_COUNT}` : category}
))}
diff --git a/scripts/extract_catalog.py b/scripts/extract_catalog.py
index 631e250..ed579b7 100644
--- a/scripts/extract_catalog.py
+++ b/scripts/extract_catalog.py
@@ -142,6 +142,12 @@ def main() -> None:
with pdfplumber.open(PDF_PATH) as pdf:
for page_number, page in enumerate(pdf.pages, 1):
category = CATEGORY_BY_PAGE[page_number]
+ page_text = clean(page.extract_text() or "")
+ expected_heading = f"{category}产品明细表"
+ if expected_heading not in page_text:
+ raise RuntimeError(
+ f"Category heading mismatch on page {page_number}: expected {expected_heading}"
+ )
tables = page.find_tables()
if not tables:
raise RuntimeError(f"No table found on page {page_number}")