Skip to content

Commit 72ded47

Browse files
committed
chore: format and lint
1 parent a29e193 commit 72ded47

File tree

13 files changed

+252
-255
lines changed

13 files changed

+252
-255
lines changed

apps/docs/app/docs/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import { createRelativeLink } from "fumadocs-ui/mdx";
22
import { DocsBody, DocsPage } from "fumadocs-ui/page";
33
import type { Metadata } from "next";
44
import { notFound } from "next/navigation";
5+
import { LLMCopyButton, ViewOptions } from "@/components/page-actions";
56
import { getPageImage, source } from "@/lib/source";
67
import { getMDXComponents } from "@/mdx-components";
7-
import { LLMCopyButton, ViewOptions } from "@/components/page-actions";
88

99
export default async function Page(props: PageProps<"/docs/[[...slug]]">) {
1010
const params = await props.params;

apps/docs/app/docs/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { DocsLayout } from "fumadocs-ui/layouts/docs";
2-
import { source } from "@/lib/source";
32
import { baseOptions } from "@/lib/layout.shared";
3+
import { source } from "@/lib/source";
44

55
export default function Layout({ children }: LayoutProps<"/docs">) {
66
const base = baseOptions();

apps/docs/app/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ import { HomeLayout } from "fumadocs-ui/layouts/home";
33
import { RootProvider } from "fumadocs-ui/provider/next";
44
import type { Metadata } from "next";
55
import { Inter } from "next/font/google";
6+
import { cookies } from "next/headers";
67
import { Navbar } from "@/components/navbar";
78
import SearchDialog from "@/components/search";
8-
import { baseOptions } from "@/lib/layout.shared";
99
import { ThemeProvider } from "@/components/theme-provider";
10-
import { cookies } from "next/headers";
10+
import { baseOptions } from "@/lib/layout.shared";
1111

1212
const inter = Inter({
1313
subsets: ["latin"],

apps/docs/app/llms.mdx/[[...slug]]/route.ts

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

44
export const revalidate = false;
55

apps/docs/app/middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { NextRequest, NextResponse } from "next/server";
21
import { isMarkdownPreferred, rewritePath } from "fumadocs-core/negotiation";
2+
import { type NextRequest, NextResponse } from "next/server";
33

44
const { rewrite: rewriteLLM } = rewritePath("/docs/*path", "/llms.mdx/*path");
55

apps/docs/cli.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"aliases": {
3-
"uiDir": "./components/ui",
4-
"componentsDir": "./components",
5-
"blockDir": "./components",
6-
"cssDir": "./styles",
7-
"libDir": "./lib"
8-
},
9-
"baseDir": "",
10-
"commands": {}
11-
}
2+
"aliases": {
3+
"uiDir": "./components/ui",
4+
"componentsDir": "./components",
5+
"blockDir": "./components",
6+
"cssDir": "./styles",
7+
"libDir": "./lib"
8+
},
9+
"baseDir": "",
10+
"commands": {}
11+
}

apps/docs/components/hero.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"use client";
2-
import Link from "next/link";
3-
import { useTheme } from "next-themes";
4-
import { Button } from "@/components/ui/button";
5-
import { Copy, SquareArrowOutUpRight } from "lucide-react";
2+
import { Anthropic, Google, OpenAI } from "@lobehub/icons";
3+
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";
64
import {
75
Tabs,
86
TabsContent,
97
TabsList,
108
TabsTrigger,
119
} from "fumadocs-ui/components/tabs";
10+
import { Copy, SquareArrowOutUpRight } from "lucide-react";
11+
import Link from "next/link";
12+
import { useTheme } from "next-themes";
1213
import { useServerTheme } from "@/components/theme-provider";
13-
import { Anthropic, Google, OpenAI } from "@lobehub/icons";
14-
import { DynamicCodeBlock } from "fumadocs-ui/components/dynamic-codeblock";
14+
import { Button } from "@/components/ui/button";
1515

1616
export function Hero() {
1717
const { resolvedTheme } = useTheme();

apps/docs/components/navbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ export function Navbar({ starCout }: NavbarProps) {
136136
className={cn(
137137
"text-base font-medium transition-colors hover:bg-accent hover:text-accent-foreground px-4 py-3 rounded-md",
138138
pathname.startsWith(item.href) &&
139-
"bg-accent text-accent-foreground",
139+
"bg-accent text-accent-foreground",
140140
)}
141141
onClick={() => setIsOpen(false)}
142142
>

0 commit comments

Comments
 (0)