diff --git a/scripts/ferndesk_sync.py b/scripts/ferndesk_sync.py index 1a6487b..69c6c1a 100755 --- a/scripts/ferndesk_sync.py +++ b/scripts/ferndesk_sync.py @@ -429,7 +429,8 @@ def discover_pages(docs_root: Path) -> list[dict]: { "path": rel, "title": title, - "slug": slug.replace("/", "-"), + # FernDesk rejects underscores in slugs (POST 400); normalize. + "slug": slug.replace("/", "-").replace("_", "-"), "collection": coll, "markdown": md, "fp": fp,