mirror of
https://wget.la/https://github.com/leookun/cursor-byok
synced 2026-10-09 17:08:42 +08:00
feat(docs): enhance documentation and UI consistency
- Updated the index.html to dynamically set the theme color based on user selection, improving user experience during theme switching. - Modified proxy.ts to include 'icon.png' in the matcher for better asset handling. - Added a new icon.png file for enhanced branding. - Improved metadata in layout.tsx and page.tsx files for better clarity and consistency in documentation. - Updated various documentation files to reflect the new branding of 'Cursor Byok' and ensure consistent terminology throughout. - Removed outdated blog entries and added new content to better align with the current product direction.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import Image from 'next/image';
|
||||
import { zhCN } from '@fumadocs/language/zh-cn';
|
||||
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
|
||||
import { uiTranslations } from 'fumadocs-ui/i18n';
|
||||
@@ -13,11 +14,16 @@ const navLabels: Record<Language, { docs: string; blog: string; download: string
|
||||
|
||||
export function baseOptions(lang: Language): BaseLayoutProps {
|
||||
const labels = navLabels[lang];
|
||||
const prefix = lang === i18n.defaultLanguage ? '' : `/${lang}`;
|
||||
const prefix = `/${lang}`;
|
||||
|
||||
return {
|
||||
nav: {
|
||||
title: appName,
|
||||
title: (
|
||||
<>
|
||||
<Image src="/images/logo.png" alt="" width={20} height={20} className="rounded-[5px]" />
|
||||
{appName}
|
||||
</>
|
||||
),
|
||||
},
|
||||
links: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user