github fuma-nama/fumadocs fumadocs-ui@14.0.0

latest releases: fumadocs-core@15.7.12, fumadocs-openapi@9.3.9, create-fumadocs-app@15.7.12...
10 months ago

Major Changes

  • d9e908e: Refactor import paths for layouts

    migrate: Use

    import { DocsLayout } from 'fumadocs-ui/layouts/docs';
    
    import { HomeLayout } from 'fumadocs-ui/layouts/home';
    
    import { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';

    Instead of

    import { DocsLayout } from 'fumadocs-ui/layout';
    
    import { HomeLayout } from 'fumadocs-ui/home-layout';
    
    import { HomeLayoutProps } from 'fumadocs-ui/home-layout';
  • 9a10262: Move Twoslash UI components to fumadocs-twoslash

    why: Isolate logic from Fumadocs UI

    migrate:

    Before:

    import 'fumadocs-ui/twoslash.css';
    
    import { Popup } from 'fumadocs-ui/twoslash/popup';

    After:

    import 'fumadocs-twoslash/twoslash.css';
    
    import { Popup } from 'fumadocs-twoslash/ui';

    Tailwind CSS is now required for Twoslash integration.

  • d9e908e: Remove getImageMeta from fumadocs-ui/og

    migrate: Use Metadata API from fumadocs-core/server

  • d9e908e: Replace fumadocs-core/search/shared with fumadocs-core/server

  • be53a0e: DocsCategory now accept from prop instead of pages prop.

    why: This allows sharing the order of items with page tree.
    migrate:

    The component now takes from prop which is the Source API object.

    import { source } from '@/lib/source';
    import { DocsCategory } from 'fumadocs-ui/page';
    
    const page = source.getPage(params.slug);
    
    <DocsCategory page={page} from={source} />;

Minor Changes

  • 34cf456: Support disableThemeSwitch on layouts
  • d9e908e: Bundle icons into dist
  • ad47fd8: Show i18n language toggle on home layout
  • 87063eb: Add root toggle to sidebar automatically
  • 64f0653: Introduce --fd-nav-height CSS variable for custom navbar
  • e1ee822: Support hast nodes in toc variable
  • 3d054a8: Support linking to a specific tab

Patch Changes

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.