Skip to content

Commit 97fa3fc

Browse files
committed
chore: applied formatting
1 parent cfeb7a9 commit 97fa3fc

9 files changed

Lines changed: 272 additions & 272 deletions

File tree

src/app/(docs)/[...slug]/page.tsx

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import {
66
DocsTitle,
77
} from "fumadocs-ui/page";
88
import { notFound } from "next/navigation";
9+
import { LLMCopyButton, ViewOptions } from "@/components/page-actions";
910
import { source } from "@/lib/source";
1011
import { getMDXComponents } from "@/mdx-components";
11-
import { LLMCopyButton, ViewOptions } from "@/components/page-actions";
1212

1313
export default async function Page(props: {
1414
params: Promise<{ slug?: string[] }>;
@@ -29,14 +29,13 @@ export default async function Page(props: {
2929
<DocsTitle>{page.data.title}</DocsTitle>
3030
<DocsDescription>{page.data.description}</DocsDescription>
3131
<DocsBody>
32-
<div className="flex flex-row gap-2 items-center border-b pt-2 pb-6">
33-
34-
<LLMCopyButton markdownUrl={`${page.url}.md`} />
35-
<ViewOptions
36-
markdownUrl={`${page.url}.md`}
37-
githubUrl={`https://github.com/OpenZeppelin/docs/blob/main/content/${page.path}`}
38-
/>
39-
</div>
32+
<div className="flex flex-row gap-2 items-center border-b pt-2 pb-6">
33+
<LLMCopyButton markdownUrl={`${page.url}.md`} />
34+
<ViewOptions
35+
markdownUrl={`${page.url}.md`}
36+
githubUrl={`https://github.com/OpenZeppelin/docs/blob/main/content/${page.path}`}
37+
/>
38+
</div>
4039
<MDXContent
4140
components={getMDXComponents({
4241
// this allows you to link to other pages with relative file paths

src/app/llms-full.txt/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { source } from "@/lib/source";
21
import { getLLMText } from "@/lib/get-llm-text";
2+
import { source } from "@/lib/source";
33

44
// cached forever
55
export const revalidate = false;
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { type NextRequest, NextResponse } from 'next/server';
2-
import { getLLMText } from '@/lib/get-llm-text';
3-
import { source } from '@/lib/source';
4-
import { notFound } from 'next/navigation';
1+
import { notFound } from "next/navigation";
2+
import { type NextRequest, NextResponse } from "next/server";
3+
import { getLLMText } from "@/lib/get-llm-text";
4+
import { source } from "@/lib/source";
55

66
export const revalidate = false;
77

88
export async function GET(
9-
_req: NextRequest,
10-
{ params }: { params: Promise<{ slug?: string[] }> },
9+
_req: NextRequest,
10+
{ params }: { params: Promise<{ slug?: string[] }> },
1111
) {
12-
const { slug } = await params;
13-
const page = source.getPage(slug);
14-
if (!page) notFound();
12+
const { slug } = await params;
13+
const page = source.getPage(slug);
14+
if (!page) notFound();
1515

16-
return new NextResponse(await getLLMText(page));
16+
return new NextResponse(await getLLMText(page));
1717
}
1818

1919
export function generateStaticParams() {
20-
return source.generateParams();
20+
return source.generateParams();
2121
}

0 commit comments

Comments
 (0)