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 6 months ago

fumadocs - [email protected]

Published by fuma-nama 6 months ago

Major Changes

  • 2d8df75: Remove cwd option from remark-dynamic-content

    why: Use cwd from vfile

    migrate: Pass the cwd option from remark instead

  • 92cb12f: Simplify Source API virtual storage.

    why: Improve performance

    migrate:

    - storage.write('path.mdx', { type: 'page', ... })
    - storage.readPage('page')
    + storage.write('path.mdx', 'page', { ... })
    + storage.read('page', 'page')
    

    Transformers can now access file loader options.

    load({
      transformers: [
        ({ storage, options }) => {
          options.getUrl();
          options.getSlugs();
        },
      ],
    });
    
  • f75287d: Introduce fumadocs-docgen package.

    Offer a better authoring experience for advanced use cases.

    • Move remark-dynamic-content and remark-install plugins to the new package fumadocs-docgen.
    • Support Typescript generator by default

    Usage

    Add the remarkDocGen plugin to your remark plugins.

    import { remarkDocGen, fileGenerator } from "fumadocs-docgen";
    
    remark().use(remarkDocGen, { generators: [fileGenerator()] });
    

    Generate docs with code blocks.

    ```json doc-gen:<generator>
    {
      // options
    }
    ```
    

    Migrate

    For remarkDynamicContent, enable fileGenerator and use this syntax:

    ```json doc-gen:file
    {
      "file": "./path/to/my-file.txt"
    }
    ```
    

    For remarkInstall, it remains the same:

    import { remarkInstall } from "fumadocs-docgen";
    
  • 2d8df75: Remove support for getTableOfContentsFromPortableText

    why: Sanity integration should be provided by 3rd party integrations

    migrate: Use built-in sources, or write a custom implementation

fumadocs - [email protected]

Published by fuma-nama 6 months ago

Patch Changes

  • Updated dependencies [2d8df75]
  • Updated dependencies [92cb12f]
  • Updated dependencies [f75287d]
  • Updated dependencies [2d8df75]
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • 6ace206: Support opening Twoslash popup on mobile
  • d0288d1: New theme dusk
  • Updated dependencies [bbad52f]
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 7 months ago

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • bbad52f: Support bun in remark-install plugin
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • 0facc07: Replace navbar links with secondary links
  • fd38022: Improve sidebar collapse
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 7 months ago

fumadocs - [email protected]

Published by fuma-nama 7 months ago

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • 38d6f22: Improve RTL Layout experience
  • Updated dependencies [779c599]
  • Updated dependencies [0c01300]
  • Updated dependencies [779c599]
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • Updated dependencies [779c599]
  • Updated dependencies [0c01300]
  • Updated dependencies [779c599]
fumadocs - [email protected]

Published by fuma-nama 7 months ago

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • 779c599: Mark getTableOfContentsFromPortableText deprecated
  • 0c01300: Fix remark-dynamic-content ignored code blocks
  • 779c599: Support relative resolve path for remark-dynamic-content
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • Updated dependencies [779c599]
  • Updated dependencies [0c01300]
  • Updated dependencies [779c599]
fumadocs - [email protected]

Published by fuma-nama 7 months ago

Minor Changes

  • 566539a: Support RTL layout

Patch Changes

fumadocs - [email protected]

Published by fuma-nama 7 months ago

Patch Changes

  • 77b5b70: Fix compatibility problems with Typescript 5.4.3
Package Rankings
Top 25.25% on Npmjs.org
Related Projects