adds API docs

This commit is contained in:
Christian Beutel
2024-03-23 20:19:20 +01:00
parent 6f01cecc22
commit 77b87e2d96
12 changed files with 113 additions and 9 deletions

View File

@@ -12,6 +12,11 @@
<div>
<h5 class="font-semibold">Resources</h5>
<ul class="mt-4 text-sm">
<li>
<a href="/docs/api/index.html"
>API {$_("documentation")}</a
>
</li>
<li>
<a href="https://github.com/Flomp/wanderer/wiki"
>{$_("documentation")}</a

View File

@@ -104,7 +104,7 @@
searchDropdownItems = result.hits.map((h: Record<string, any>) => ({
text: h.name,
description: `${h.division} | ${
description: `${h.division ? `${h.division} | ` : ""}${
country_codes[h["country code"] as keyof typeof country_codes]
}`,
value: h,