Translate the whole site to English: English routes with 301 redirects from the Dutch paths, English UI, docs, seeds and captions, one-time live content migration

This commit is contained in:
2026-10-05 11:25:41 +02:00
parent bbdecdc95b
commit ff547e1677
153 changed files with 1095 additions and 774 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ def build_index():
for item in group["endpoints"]:
lines.append(f"{item['method']} {item['path']} {item['title']} {item['description']}")
documents.append(
{"title": f"API: {group['title']}", "url": f"/docs/api/{group['slug']}", "text": " ".join(lines), "admin": group["slug"] == "beheer"}
{"title": f"API: {group['title']}", "url": f"/docs/api/{group['slug']}", "text": " ".join(lines), "admin": group["slug"] == "admin"}
)
tokens = [Counter(tokenize(doc["title"] + " " + doc["text"])) for doc in documents]
lengths = [sum(counter.values()) for counter in tokens]