chore: move mdx-components to docs folder

This commit is contained in:
javayhu 2025-06-20 23:51:25 +08:00
parent 9e54932b27
commit 40b313a2f2
6 changed files with 6 additions and 13 deletions

View File

@ -1,6 +1,6 @@
import AllPostsButton from '@/components/blog/all-posts-button';
import BlogGrid from '@/components/blog/blog-grid';
import { getMDXComponents } from '@/components/custom/mdx-components';
import { getMDXComponents } from '@/components/docs/mdx-components';
import { NewsletterCard } from '@/components/newsletter/newsletter-card';
import { websiteConfig } from '@/config/website';
import { LocaleLink } from '@/i18n/navigation';

View File

@ -1,5 +1,5 @@
import { getMDXComponents } from '@/components/custom/mdx-components';
import * as Preview from '@/components/docs';
import { getMDXComponents } from '@/components/docs/mdx-components';
import {
HoverCard,
HoverCardContent,

View File

@ -4,7 +4,7 @@ import { Separator } from '@/components/ui/separator';
import { formatDate } from '@/lib/formatter';
import type { ChangelogType } from '@/lib/source';
import { CalendarIcon, TagIcon } from 'lucide-react';
import { getMDXComponents } from '../custom/mdx-components';
import { getMDXComponents } from '../docs/mdx-components';
interface ReleaseCardProps {
releaseItem: ChangelogType;

View File

@ -1,7 +1,7 @@
import { formatDate } from '@/lib/formatter';
import type { PagesType } from '@/lib/source';
import { CalendarIcon } from 'lucide-react';
import { getMDXComponents } from '../custom/mdx-components';
import { getMDXComponents } from '../docs/mdx-components';
import { Card, CardContent } from '../ui/card';
interface CustomPageProps {

View File

@ -2,15 +2,8 @@ import { type InferPageType, loader } from 'fumadocs-core/source';
import { createMDXSource } from 'fumadocs-mdx';
import * as LucideIcons from 'lucide-react';
import { createElement } from 'react';
import {
author,
blog,
category,
changelog,
docs,
pages,
} from '../../../.source';
import { docsI18nConfig } from './i18n';
import { author, blog, category, changelog, docs, pages } from '../../.source';
import { docsI18nConfig } from './docs/i18n';
/**
* Turn a content source into a unified interface