File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { source } from '@/lib/source' ;
22import { DocsLayout } from 'fumadocs-ui/layouts/docs' ;
33import { baseOptions } from '@/lib/layout.shared' ;
4+ import { Zap } from 'lucide-react' ;
45
56export default function Layout ( { children } : LayoutProps < '/docs' > ) {
7+ const { links, ...options } = baseOptions ( ) ;
68 return (
79 < DocsLayout
810 tree = { source . getPageTree ( ) }
9- { ...baseOptions ( ) }
11+ { ...options }
12+ links = { links ?. filter ( ( link ) => 'url' in link && link . url !== '/docs' && link . url !== 'https://rbby.dev' ) }
1013 sidebar = { {
1114 defaultOpenLevel : 1 ,
15+ footer : (
16+ < div className = "-mx-2 mb-2 mt-2 rounded-lg bg-fd-accent/50 px-2 py-1.5" >
17+ < a
18+ href = "https://rbby.dev"
19+ target = "_blank"
20+ rel = "noopener noreferrer"
21+ className = "flex items-center justify-center gap-1.5 text-sm text-fd-muted-foreground hover:text-fd-foreground transition-colors"
22+ >
23+ by < Zap className = "size-3.5" /> rbby.dev
24+ </ a >
25+ </ div >
26+ ) ,
1227 } }
1328 >
1429 { children }
Original file line number Diff line number Diff line change 11import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared' ;
2- import { BookOpen , SquareTerminal } from 'lucide-react' ;
2+ import { BookOpen , SquareTerminal , Zap } from 'lucide-react' ;
33import { gitConfig } from './shared' ;
44
55export function baseOptions ( ) : BaseLayoutProps {
@@ -32,6 +32,16 @@ export function baseOptions(): BaseLayoutProps {
3232 url : 'https://rbby.dev/gnata-sqlite/playground' ,
3333 external : true ,
3434 } ,
35+ {
36+ text : (
37+ < span className = "inline-flex items-center gap-1.5" >
38+ < Zap className = "size-4" />
39+ rbby.dev
40+ </ span >
41+ ) ,
42+ url : 'https://rbby.dev' ,
43+ external : true ,
44+ } ,
3545 ] ,
3646 } ;
3747}
You can’t perform that action at this time.
0 commit comments