mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-25 04:20:02 +00:00
UI: Support to disable prefetch on links
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'fumadocs-ui': patch
|
||||
---
|
||||
|
||||
Support to disable prefetching links on sidebar
|
||||
@@ -1,6 +1,7 @@
|
||||
import { DocsLayout } from 'fumadocs-ui/layout';
|
||||
import type { ReactNode } from 'react';
|
||||
import { docsOptions } from '@/app/layout.config';
|
||||
import 'fumadocs-ui/twoslash.css';
|
||||
|
||||
export default function Layout({
|
||||
children,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import './global.css';
|
||||
import 'fumadocs-ui/twoslash.css';
|
||||
import type { Viewport } from 'next';
|
||||
import { GeistSans } from 'geist/font/sans';
|
||||
import { GeistMono } from 'geist/font/mono';
|
||||
|
||||
@@ -63,7 +63,7 @@ export function NavBox({
|
||||
|
||||
export function Title({ title, url = '/' }: TitleProps): React.ReactElement {
|
||||
return (
|
||||
<Link href={url} className="inline-flex items-center gap-2.5 font-semibold">
|
||||
<Link href={url} className="inline-flex items-center gap-1.5 font-semibold">
|
||||
{title}
|
||||
</Link>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user