File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed
Expand file tree Collapse file tree 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() {
1010 404
1111 </ h1 >
1212 < 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.
1415 </ p >
1516 </ div >
1617 < Link
Original file line number Diff line number Diff line change 11import { docs } from "@/.source" ;
22import { loader } from "fumadocs-core/source" ;
3+ import { icons } from "lucide-react" ;
4+ import { createElement } from "react" ;
35
46// `loader()` also assign a URL to your pages
57// See https://fumadocs.vercel.app/docs/headless/source-api for more info
68export 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+ } ,
717 baseUrl : "/" ,
818 source : docs . toFumadocsSource ( ) ,
919} ) ;
You can’t perform that action at this time.
0 commit comments