chore: fix lint and format issues
This commit is contained in:
parent
71b9807433
commit
0739c717d8
@ -64,14 +64,14 @@ export default async function DocsRootLayout({
|
||||
},
|
||||
...(websiteConfig.metadata.social?.twitter
|
||||
? [
|
||||
{
|
||||
type: 'icon' as const,
|
||||
icon: <XTwitterIcon />,
|
||||
text: 'X',
|
||||
url: websiteConfig.metadata.social.twitter,
|
||||
secondary: true,
|
||||
},
|
||||
]
|
||||
{
|
||||
type: 'icon' as const,
|
||||
icon: <XTwitterIcon />,
|
||||
text: 'X',
|
||||
url: websiteConfig.metadata.social.twitter,
|
||||
secondary: true,
|
||||
},
|
||||
]
|
||||
: []),
|
||||
],
|
||||
themeSwitch: {
|
||||
|
@ -4,7 +4,7 @@ import { ActiveThemeProvider } from '@/components/layout/active-theme-provider';
|
||||
import { PaymentProvider } from '@/components/layout/payment-provider';
|
||||
import { TooltipProvider } from '@/components/ui/tooltip';
|
||||
import { websiteConfig } from '@/config/website';
|
||||
import { Translations } from 'fumadocs-ui/i18n';
|
||||
import type { Translations } from 'fumadocs-ui/i18n';
|
||||
import { RootProvider } from 'fumadocs-ui/provider';
|
||||
import { useTranslations } from 'next-intl';
|
||||
import { ThemeProvider, useTheme } from 'next-themes';
|
||||
|
@ -56,11 +56,11 @@ const searchAPI = createI18nSearchAPI('advanced', {
|
||||
|
||||
/**
|
||||
* Fumadocs 15.2.8 fixed the bug that the `locale` is not passed to the search API
|
||||
*
|
||||
*
|
||||
* ref:
|
||||
* https://x.com/indie_maker_fox/status/1913457083997192589
|
||||
*
|
||||
* NOTICE:
|
||||
*
|
||||
* NOTICE:
|
||||
* Fumadocs 15.1.2 has a bug that the `locale` is not passed to the search API
|
||||
* 1. Wrap the GET handler for debugging docs search
|
||||
* 2. Detect locale from referer header, and add the locale parameter to the search API
|
||||
|
Loading…
Reference in New Issue
Block a user