feat(web): add llms.txt

This commit is contained in:
Aman Varshney
2025-08-12 17:37:04 +05:30
parent 9273629d92
commit 1f36e9effc
9 changed files with 278 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ import {
DocsTitle,
} from "fumadocs-ui/page";
import { notFound } from "next/navigation";
import { LLMCopyButton, ViewOptions } from "@/components/ai/page-actions";
import { source } from "@/lib/source";
export default async function Page(props: {
@@ -22,6 +23,13 @@ export default async function Page(props: {
<DocsPage toc={page.data.toc} full={page.data.full}>
<DocsTitle>{page.data.title}</DocsTitle>
<DocsDescription>{page.data.description}</DocsDescription>
<div className="flex flex-row items-center gap-2 border-b pt-2 pb-6">
<LLMCopyButton markdownUrl={`${page.url}.mdx`} />
<ViewOptions
markdownUrl={`${page.url}.mdx`}
githubUrl={`https://github.com/AmanVarshney01/create-better-t-stack/blob/main/apps/web/content/docs/${page.path}`}
/>
</div>
<DocsBody>
<MDX components={{ ...defaultMdxComponents, ...TabsComponents }} />
</DocsBody>