feat(docs): optimize mobile layout and localized metadata
This commit is contained in:
28 files changed
+909
-396
No files matched your search
@@ -88,14 +88,16 @@ export default async function Page({ params }: { params: Promise<{ lang: string;
|
||||
};
|
||||
|
||||
return (
|
||||
<DocsPage toc={toc}>
|
||||
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbJsonLd) }} />
|
||||
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(articleJsonLd) }} />
|
||||
<DocsTitle>{title}</DocsTitle>
|
||||
<DocsBody>
|
||||
<MDX components={mdxComponents} />
|
||||
</DocsBody>
|
||||
</DocsPage>
|
||||
<main className="contents">
|
||||
<DocsPage toc={toc}>
|
||||
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(breadcrumbJsonLd) }} />
|
||||
<script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(articleJsonLd) }} />
|
||||
<DocsTitle>{title}</DocsTitle>
|
||||
<DocsBody>
|
||||
<MDX components={mdxComponents} />
|
||||
</DocsBody>
|
||||
</DocsPage>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ export default async function Layout({ params, children }: { params: Promise<{ l
|
||||
nav={{
|
||||
title: (
|
||||
<div className="flex items-center gap-2">
|
||||
<img src="/logo.png" alt="DBX" width={24} height={24} />
|
||||
<img src="/logo.png" alt="" aria-hidden="true" width={24} height={24} />
|
||||
<span className="font-semibold">DBX</span>
|
||||
</div>
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user