fumadocs

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

MIT License

Downloads
1.6K
Stars
1.5K

Bot releases are hidden (Show)

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago

fumadocs - [email protected]

Published by fuma-nama 9 months ago

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Minor Changes

  • 0012eba: Support Typescript Twoslash
  • bc936c5: Add AutoTypeTable server component

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
  • Updated dependencies [6c5a39a]
  • Updated dependencies [eb028b4]
  • Updated dependencies [054ec60]
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
  • Updated dependencies [6c5a39a]
  • Updated dependencies [eb028b4]
  • Updated dependencies [054ec60]
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
  • Updated dependencies [6c5a39a]
  • Updated dependencies [eb028b4]
  • Updated dependencies [054ec60]
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Minor Changes

  • eb028b4: Migrate to shiki
  • 054ec60: Support generating docs for Typescript file

Patch Changes

  • 6c5a39a: Rename Git repository to fumadocs
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Major Changes

  • a2f4819: Improve internationalized routing

    I18nProvider now handles routing for you.
    Therefore, locale and onChange is no longer required.

    <I18nProvider
      translations={{
        cn: {
          name: 'Chinese', // required
          search: 'Translated Content',
        },
      }}
    ></I18nProvider>
    

    LanguageSelect detects available options from your translations, therefore, the languages prop is removed.

  • c608ad2: Remove deprecated docsUiPlugins

    migrate: Use createPreset instead

    const { createPreset } = require('fumadocs-ui/tailwind-plugin');
    
    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: [
        './components/**/*.{ts,tsx}',
        './app/**/*.{ts,tsx}',
        './content/**/*.mdx',
        './node_modules/fumadocs-ui/dist/**/*.js',
      ],
      presets: [createPreset()],
    };
    
  • 2ea9437: Change usage of Code Block component

    The inner pre element is now separated from code block container, making it easier to customise.`

    Before:

    import { CodeBlock, Pre } from 'fumadocs-ui/mdx/pre';
    
    <Pre title={title} allowCopy {...props} />;
    

    After:

    import { CodeBlock, Pre } from 'fumadocs-ui/components/codeblock';
    
    <CodeBlock title={title} allowCopy>
      <Pre {...props} />
    </CodeBlock>;
    
  • ac424ec: Update import paths of MDX components

    why: To improve consistency, all MDX components are located in /components/* instead.

    migrate:

    - import { Card, Cards } from "fumadocs-ui/mdx/card"
    + import { Card, Cards } from "fumadocs-ui/components/card"
    
    - import { Heading } from "fumadocs-ui/mdx/heading"
    + import { Heading } from "fumadocs-ui/components/heading"
    
    - import { Codeblock, Pre } from "fumadocs-ui/mdx/pre"
    + import { Codeblock, Pre } from "fumadocs-ui/components/codeblock"
    
  • 2b11c20: Rename to Fumadocs

    next-docs-zeta -> fumadocs-core

    next-docs-ui -> fumadocs-ui

    next-docs-mdx -> fumadocs-mdx

    @fuma-docs/openapi -> fumadocs-openapi

    create-next-docs-app -> create-fumadocs-app

  • 60db195: Remove Nav component export

    why: Replaced by the DocsLayout and Layout component, it is now an internal component

    migration: Use the Layout component for sharing the navbar across pages

    - import { Nav } from "fumadocs-ui/nav"
    + import { Layout } from "fumadocs-ui/layout"
    

Minor Changes

  • 60db195: Support transparent navbar

Patch Changes

  • 974e00f: Collapse API example by default
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Major Changes

  • 2b11c20: Rename to Fumadocs

    next-docs-zeta -> fumadocs-core

    next-docs-ui -> fumadocs-ui

    next-docs-mdx -> fumadocs-mdx

    @fuma-docs/openapi -> fumadocs-openapi

    create-next-docs-app -> create-fumadocs-app

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Major Changes

  • 1a346a1: Enable remark-image plugin by default

    You can add image embeds easily. They will be converted to static image imports.

    ![banner](/image.png)
    

    Become:

    import img_banner from '../../public/image.png';
    
    <img alt="banner" src={img_banner} />
    
  • 2b11c20: Rename to Fumadocs

    next-docs-zeta -> fumadocs-core

    next-docs-ui -> fumadocs-ui

    next-docs-mdx -> fumadocs-mdx

    @fuma-docs/openapi -> fumadocs-openapi

    create-next-docs-app -> create-fumadocs-app

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Major Changes

  • 2b11c20: Rename to Fumadocs

    next-docs-zeta -> fumadocs-core

    next-docs-ui -> fumadocs-ui

    next-docs-mdx -> fumadocs-mdx

    @fuma-docs/openapi -> fumadocs-openapi

    create-next-docs-app -> create-fumadocs-app

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Major Changes

  • 2ea9437: Migrate to rehype-shikiji

    • Dropped support for inline code syntax highlighting
    • Use notation-based word/line highlighting instead of meta string

    Before:

    ```ts /config/ {1}
    const config = 'Hello';
    
    something.call(config);
    ```
    

    After:

    ```ts
    // [!code word:config]
    const config = 'Hello'; // [!code highlight]
    
    something.call(config);
    ```
    

    Read the docs of Shikiji for more information.

  • cdff313: Separate Contentlayer integration into another package

    why: As Fumadocs MDX is the preferred default source, Contentlayer should be optional.

    migrate:

    Install fumadocs-contentlayer.

    - import { createContentlayerSource } from "fumadocs-core/contentlayer"
    + import { createContentlayerSource } from "fumadocs-contentlayer"
    
    - import { createConfig } from "fumadocs-core/contentlayer/configuration"
    + import { createConfig } from "fumadocs-contentlayer/configuration"
    
  • 2b11c20: Rename to Fumadocs

    next-docs-zeta -> fumadocs-core

    next-docs-ui -> fumadocs-ui

    next-docs-mdx -> fumadocs-mdx

    @fuma-docs/openapi -> fumadocs-openapi

    create-next-docs-app -> create-fumadocs-app

Minor Changes

  • 1a346a1: Add remark-image plugin that converts relative image urls into static image imports (Inspired by Nextra)
fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 9 months ago