File tree Expand file tree Collapse file tree 13 files changed +252
-255
lines changed
content/docs/(get-started) Expand file tree Collapse file tree 13 files changed +252
-255
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import { createRelativeLink } from "fumadocs-ui/mdx";
22import { DocsBody , DocsPage } from "fumadocs-ui/page" ;
33import type { Metadata } from "next" ;
44import { notFound } from "next/navigation" ;
5+ import { LLMCopyButton , ViewOptions } from "@/components/page-actions" ;
56import { getPageImage , source } from "@/lib/source" ;
67import { getMDXComponents } from "@/mdx-components" ;
7- import { LLMCopyButton , ViewOptions } from "@/components/page-actions" ;
88
99export default async function Page ( props : PageProps < "/docs/[[...slug]]" > ) {
1010 const params = await props . params ;
Original file line number Diff line number Diff line change 11import { DocsLayout } from "fumadocs-ui/layouts/docs" ;
2- import { source } from "@/lib/source" ;
32import { baseOptions } from "@/lib/layout.shared" ;
3+ import { source } from "@/lib/source" ;
44
55export default function Layout ( { children } : LayoutProps < "/docs" > ) {
66 const base = baseOptions ( ) ;
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import { HomeLayout } from "fumadocs-ui/layouts/home";
33import { RootProvider } from "fumadocs-ui/provider/next" ;
44import type { Metadata } from "next" ;
55import { Inter } from "next/font/google" ;
6+ import { cookies } from "next/headers" ;
67import { Navbar } from "@/components/navbar" ;
78import SearchDialog from "@/components/search" ;
8- import { baseOptions } from "@/lib/layout.shared" ;
99import { ThemeProvider } from "@/components/theme-provider" ;
10- import { cookies } from "next/headers " ;
10+ import { baseOptions } from "@/lib/layout.shared " ;
1111
1212const inter = Inter ( {
1313 subsets : [ "latin" ] ,
Original file line number Diff line number Diff line change 1- import { getLLMText , source } from "@/lib/source" ;
21import { notFound } from "next/navigation" ;
2+ import { getLLMText , source } from "@/lib/source" ;
33
44export const revalidate = false ;
55
Original file line number Diff line number Diff line change 1- import { NextRequest , NextResponse } from "next/server" ;
21import { isMarkdownPreferred , rewritePath } from "fumadocs-core/negotiation" ;
2+ import { type NextRequest , NextResponse } from "next/server" ;
33
44const { rewrite : rewriteLLM } = rewritePath ( "/docs/*path" , "/llms.mdx/*path" ) ;
55
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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" ;
64import {
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" ;
1213import { 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
1616export function Hero ( ) {
1717 const { resolvedTheme } = useTheme ( ) ;
Original file line number Diff line number Diff 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 >
You can’t perform that action at this time.
0 commit comments