File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ export default function NotFound() {
10
10
404
11
11
</ h1 >
12
12
< p className = "text-gray-500" >
13
- Looks like you've ventured into the unknown digital realm.
13
+ Oops! You've wandered off the Zen path. Let's guide you
14
+ back to tranquility.
14
15
</ p >
15
16
</ div >
16
17
< Link
Original file line number Diff line number Diff line change 1
1
import { docs } from "@/.source" ;
2
2
import { loader } from "fumadocs-core/source" ;
3
+ import { icons } from "lucide-react" ;
4
+ import { createElement } from "react" ;
3
5
4
6
// `loader()` also assign a URL to your pages
5
7
// See https://fumadocs.vercel.app/docs/headless/source-api for more info
6
8
export const source = loader ( {
9
+ icon ( icon ) {
10
+ if ( ! icon ) {
11
+ // You may set a default icon
12
+ return ;
13
+ }
14
+
15
+ if ( icon in icons ) return createElement ( icons [ icon as keyof typeof icons ] ) ;
16
+ } ,
7
17
baseUrl : "/" ,
8
18
source : docs . toFumadocsSource ( ) ,
9
19
} ) ;
You can’t perform that action at this time.
0 commit comments