- Introduced `gray-matter` for frontmatter parsing in markdown files. - Refactored documentation components to utilize new constants and improve slug handling. - Enhanced language switcher functionality to maintain pathnames during locale changes. - Updated navigation and search components to support dynamic content loading and improved user experience. - Revised documentation text to reflect the new branding from Quaros to Goodgo.
14 lines
653 B
TypeScript
14 lines
653 B
TypeScript
import type { DocsLocale, DEFAULT_DOC_SLUG } from '@/lib/docs-types';
|
|
|
|
// EN: Server-side registry - DO NOT import into client components
|
|
// VI: Registry phía server - KHÔNG import vào client components
|
|
// This file should only be imported by Server Components
|
|
|
|
// EN: Default doc slug to load when no slug is specified
|
|
// VI: Slug mặc định khi không có slug được chỉ định
|
|
export const defaultDocSlug = DEFAULT_DOC_SLUG;
|
|
|
|
// EN: Note: getAvailableDocs is a server-side function that uses fs
|
|
// VI: Lưu ý: getAvailableDocs là hàm server-side sử dụng fs
|
|
// It should only be called from Server Components, not Client Components
|