github fuma-nama/fumadocs @fuma-docs/openapi@0.1.0

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

Minor Changes

  • 45a52ae: Support generating docs for OpenAPI schema

    In openapi.config.js:

    /**
     * @type {import("@fuma-docs/openapi").Config}
     */
    module.exports = {
      input: ['./petstore.yaml'],
      output: './content/docs',
      per: 'tag',
      render: (title, description) => {
        return {
          frontmatter: [
            '---',
            `title: ${title}`,
            `description: ${description}`,
            'toc: false',
            '---',
          ].join('\n'),
        };
      },
    };

    Run fuma-docs-openapi to generate.

Don't miss a new fumadocs release

NewReleases is sending notifications on new releases.