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:
Shahed Nasser
2025-04-18 13:18:27 +03:00
committed by GitHub
parent 24af8f2d8e
commit db0fe0fc91
14 changed files with 127 additions and 21 deletions
@@ -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>
+2 -2
View File
@@ -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.
+1 -1
View File
@@ -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&apos;t available.</P>
{/* @ts-expect-error React v19 doesn't recognize these as elements. */}