Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #314

Merged
merged 1 commit into from
Apr 17, 2024
Merged

Version Packages #314

merged 1 commit into from
Apr 17, 2024

Conversation

fuma-nama
Copy link
Owner

@fuma-nama fuma-nama commented Apr 3, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to dev, this PR will be updated.

Releases

[email protected]

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

[email protected]

Major Changes

  • 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";

[email protected]

Major Changes

  • 2d8df75: Replace nav.links option with secondary links

    why: A more straightforward API design

    migrate:

    <DocsLayout
    +  links={[
    +    {
    +      type: 'secondary',
    +      text: 'Github',
    +      url: 'https://github.com',
    +      icon: <GithubIcon />,
    +      external: true,
    +    },
    +  ]}
    -  nav={{
    -    links: [
    -      {
    -        icon: <GithubIcon />,
    -        href: 'https://github.com',
    -        label: 'Github',
    -        external: true,
    -      },
    -    ],
    -  }}
    >
      {children}
    </DocsLayout>

Patch Changes

[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

Copy link

vercel bot commented Apr 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
fumadocs ⬜️ Ignored (Inspect) Visit Preview Apr 17, 2024 4:22am

@fuma-nama fuma-nama force-pushed the changeset-release/dev branch 15 times, most recently from 0b745f7 to 433e81e Compare April 16, 2024 13:16
@fuma-nama fuma-nama force-pushed the changeset-release/dev branch from 433e81e to e1bf921 Compare April 17, 2024 04:20
@fuma-nama fuma-nama merged commit 8578f82 into dev Apr 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant