fumadocs

The beautiful docs framework for Next.js. Alternative to Nextra

MIT License

Downloads
173.3K
Stars
1.5K
Committers
34

Bot releases are visible (Hide)

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Minor Changes

  • 0a377a9: Pass the icon prop to code blocks as HTML instead of MDX attribute.

    why: Only MDX flow elements support attributes with JSX value, like:

    <Pre icon={<svg />}>...</Pre>
    

    As Shiki outputs hast elements, we have to convert the output of Shiki to a MDX flow element so that we can pass the icon property.

    Now, rehype-code passes a HTML string instead of JSX, and render it with dangerouslySetInnerHTML:

    <Pre icon="<svg />">...</Pre>
    

    migrate: Not needed, it should work seamlessly.

Patch Changes

  • 0a377a9: Close sidebar on collapse
  • 5f86faa: Improve multi-line code blocks
  • Updated dependencies [0a377a9]
  • Updated dependencies [0a377a9]
fumadocs - [email protected]

Published by fuma-nama 4 months ago

Minor Changes

  • 5f86faa: Improve multi-line code blocks
fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Minor Changes

  • 0a377a9: Support writing code blocks as a <Tab /> element.

    import { Tabs } from 'fumadocs-ui/components/tabs';
    
    <Tabs items={["Tab 1", "Tab 2"]}>
    
    ```js tab="Tab 1"
    console.log('Hello');
    ```
    
    ```js tab="Tab 2"
    console.log('Hello');
    ```
    
    </Tabs>
    

    This is same as wrapping the code block in a <Tab /> component.

  • 0a377a9: Pass the icon prop to code blocks as HTML instead of MDX attribute.

    why: Only MDX flow elements support attributes with JSX value, like:

    <Pre icon={<svg />}>...</Pre>
    

    As Shiki outputs hast elements, we have to convert the output of Shiki to a MDX flow element so that we can pass the icon property.

    Now, rehype-code passes a HTML string instead of JSX, and render it with dangerouslySetInnerHTML:

    <Pre icon="<svg />">...</Pre>
    

    migrate: Not needed, it should work seamlessly.

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

fumadocs - @fumadocs/[email protected]

Published by fuma-nama 4 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

  • 056bad5: Improve default values
  • Updated dependencies [7a29b79]
  • Updated dependencies [b0c1242]
fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

  • 7a29b79: Remove default language from source.getLanguages
  • b0c1242: Support Next.js 15 cache behaviour in getGithubLastEdit
fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

  • 70666d8: Hide file name on breadcrumbs
  • f96da27: Improve design details
  • 51ca944: Support including separators in breadcrumbs
  • Updated dependencies [72dbaf1]
  • Updated dependencies [51ca944]
fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

  • 72dbaf1: Support ReactNode in page tree, table of contents and breadcrumb type definitions
  • 51ca944: Support including separators in breadcrumbs
fumadocs - [email protected]

Published by fuma-nama 4 months ago

Patch Changes

  • 310e0ab: Fix multi-line frontmatter
Package Rankings
Top 25.25% on Npmjs.org
Related Projects