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:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user