docs: add LLM dropdown menu to documentation pages (#12235)
* docs: add LLM dropdown menu to documentation pages * fix build errors
This commit is contained in:
@@ -5,6 +5,7 @@ import { notFound } from "next/navigation"
|
||||
import { Mdx } from "@/components/mdx-components"
|
||||
import { siteConfig } from "@/config/site"
|
||||
import { Metadata } from "next"
|
||||
import { H1 } from "docs-ui"
|
||||
|
||||
interface DocPageProps {
|
||||
params: Promise<{
|
||||
@@ -58,7 +59,7 @@ export default async function DocPage(props: DocPageProps) {
|
||||
|
||||
return (
|
||||
<div className="flex flex-col">
|
||||
<h1 className="h1-docs text-medusa-fg-base mb-2">{doc.title}</h1>
|
||||
<H1>{doc.title}</H1>
|
||||
<Text className="text-medusa-fg-subtle mb-6" size="large">
|
||||
{doc.description}
|
||||
</Text>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { CardList } from "docs-ui"
|
||||
import { CardList, H1 } from "docs-ui"
|
||||
import {
|
||||
BookOpen,
|
||||
AcademicCapSolid,
|
||||
@@ -10,7 +10,7 @@ export const metadata = {
|
||||
title: `Page Not Found`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
<H1 hideLlmDropdown>{metadata.title}</H1>
|
||||
|
||||
The page you were looking for isn't available.
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ export default function NotFound() {
|
||||
return (
|
||||
<div>
|
||||
{/* @ts-expect-error React v19 doesn't recognize these as elements. */}
|
||||
<H1>Page Not Found</H1>
|
||||
<H1 hideLlmDropdown>Page Not Found</H1>
|
||||
{/* @ts-expect-error React v19 doesn't recognize these as elements. */}
|
||||
<P>The page you were looking for isn't available.</P>
|
||||
{/* @ts-expect-error React v19 doesn't recognize these as elements. */}
|
||||
|
||||
Reference in New Issue
Block a user