diff --git a/packages/i18n/strings/en.json b/packages/i18n/strings/en.json
index 41f03b9e8..ffecd6cd3 100644
--- a/packages/i18n/strings/en.json
+++ b/packages/i18n/strings/en.json
@@ -120,6 +120,7 @@
"api": {
"json": "JSON methods",
"pb": "Protocol Buffer methods",
- "media": "Media methods"
+ "media": "Media methods",
+ "no_docs": "This method has no documentation."
}
}
diff --git a/packages/website-ue/src/components/ApiGroup.astro b/packages/website-ue/src/components/ApiGroup.astro
index b209e3593..7e8b9ff8b 100644
--- a/packages/website-ue/src/components/ApiGroup.astro
+++ b/packages/website-ue/src/components/ApiGroup.astro
@@ -1,14 +1,17 @@
---
import type { CollectionEntry } from "astro:content";
+import { api } from "../core/api/dynamic";
import { Code } from "./Code";
import { Heading } from "./Heading";
import { MarkdownCustom } from "./MarkdownCustom";
interface Props {
+ locale: string;
apis: CollectionEntry<"api">[];
}
-const { apis } = Astro.props;
+const { apis, locale } = Astro.props;
+const strings = await api.strings(locale);
---
@@ -28,7 +35,10 @@ const { apis } = Astro.props;
{api.id}
-
+
))
}
diff --git a/packages/website-ue/src/components/MarkdownCustom/index.tsx b/packages/website-ue/src/components/MarkdownCustom/index.tsx
index 4d8cca172..445bea356 100644
--- a/packages/website-ue/src/components/MarkdownCustom/index.tsx
+++ b/packages/website-ue/src/components/MarkdownCustom/index.tsx
@@ -1,14 +1,16 @@
+import type { ComponentProps } from "react";
import Markdown from "react-markdown";
+import { classNames } from "../../core/ui/classNames";
import { Text } from "../Text";
import styles from "./index.module.css";
-interface Props {
+interface MarkdownCustom extends ComponentProps<"div"> {
body: string;
}
-export function MarkdownCustom({ body }: Props) {
+export function MarkdownCustom({ body, className, ...props }: MarkdownCustom) {
return (
-
+
.tool-banner {
background-size: cover;
- margin-bottom: var(--space-4);
.content {
width: 100%;
diff --git a/packages/website-ue/src/pages/[...locale]/api/index.astro b/packages/website-ue/src/pages/[...locale]/api/index.astro
index 25a965584..e3632d7df 100644
--- a/packages/website-ue/src/pages/[...locale]/api/index.astro
+++ b/packages/website-ue/src/pages/[...locale]/api/index.astro
@@ -28,17 +28,24 @@ paths.sort((a, b) => a.path.localeCompare(b.path));
{strings.api.json}
- api.id.endsWith(".json"))} />
+ api.id.endsWith(".json"))}
+ />
{strings.api.pb}
- api.id.endsWith(".pb"))} />
+ api.id.endsWith(".pb"))}
+ />
{strings.api.media}
!api.id.endsWith(".json") && !api.id.endsWith(".pb"),
)}