graphql-markdown

Flexible GraphQL Documentation Generator (Markdown)

MIT License

Downloads
111.9K
Stars
130
Committers
21

Bot releases are hidden (Show)

graphql-markdown - 1.24.4 Latest Release

Published by edno 3 months ago

๐Ÿ› Generated links now follow Docusaurus recommended practices to link docs files by full path. This fix adds the .mdx extension to generated links in Markdown files.

๐Ÿฐ A CodeSandox demo using Docusaurus versioning is available here: https://codesandbox.io/p/devbox/determined-spence-mrpnmp

What's Changed

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.24.3...1.24.4

graphql-markdown - 1.24.3

Published by edno 3 months ago

๐Ÿ› This release removes the use of block quotes for type description, fixing issues like #1535

What's Changed

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.24.2...1.24.3

graphql-markdown - 1.24.2

Published by edno 4 months ago

๐Ÿ”ง Technical maintenance release for dependencies upgrades.

โš ๏ธ This version removes compatibility with the graphql package version below 16 (see issue https://github.com/graphql-markdown/graphql-markdown/issues/1458).

What's Changed

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.24.1...1.24.2

graphql-markdown - 1.24.1

Published by edno 6 months ago

What's Changed

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.24.0...1.24.1

graphql-markdown - 1.24.0

Published by edno 8 months ago

What's Changed

๐Ÿค– A new feature printTypeOptions.exampleSection adds supports for examples using schema directives.
The feature allows inheritance of examples, so once a scalar is set with an example all types using this scalar will share the example. And, of course, you can override those examples. You can also use a custom directive and custom parser.
More details in the documentation.

Object Operation
Screenshot from 2024-02-19 18-38-20 Screenshot from 2024-02-19 18-38-37

The screenshots come from the Group by demo with the feature enabled.

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.23.0...1.24.0

graphql-markdown - 1.23.0

Published by edno 8 months ago

What's changed

โ‡๏ธ Executable types (operations and related directives) and system types (entity types) have now separate sections.
The behaviour can be disabled by setting the option printTypeOptions.useApiGroup to false or using the cli flag --noApiGroup (see documentation).

Screenshot from 2024-02-10 16-37-28

The online examples have been updated with one using the new sections and one with the option disabled. Note that the examples have some custom CSS that is not part of the default package.

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.22.0...1.23.0

graphql-markdown - 1.22.0

Published by edno 10 months ago

๐Ÿง‘โ€๐Ÿ”ง A new setting docOptions.frontMatter makes easier to generate pages with Docusaurus settings. Using this setting you can pass any front matter setting to the generator.

Example for the Docusaurus draft setting:

plugins: [
    [
      "@graphql-markdown/docusaurus",
       {
        schema: "./schema/swapi.graphql",
        docOptions: {
          frontMatter: {
            draft: true, // set draft for generated pages
          },
        },
      },
    ],
  ],

This option deprecates the options docOptions.pagination and docOptions.toc (more details in the documentation).

What's Changed

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.21.3...1.22.0

graphql-markdown - 1.21.3

Published by edno 11 months ago

๐Ÿ› Fix the incorrect build for 1.21.2 that was missing the changes for #1101.

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.7.3
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy to 1.5.3

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump peer dependency @graphql-markdown/printer-legacy to 1.5.3

@graphql-markdown/[email protected]

  • โœจ rebuild package

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.21.2...1.21.3

graphql-markdown - 1.21.2

Published by edno 11 months ago

๐Ÿช„ Improve compatibility with Docusaurus 3 by using the new admonition format for the deprecated admonition (see #1096).

Docusaurus 2 Docusaurus 3
:::caution DEPRECATED :::warning[DEPRECATED]

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.7.2 #1103
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy to 1.5.2 #1103

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump peer dependency @graphql-markdown/printer-legacy to 1.5.2 #1103

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.21.1...1.21.2

graphql-markdown - 1.21.1

Published by edno 12 months ago

๐Ÿš€ Fix compatibility with Docusaurus 3, since it MDX v3 is stricter than previous version used with Docusaurus 2.

๐Ÿ’ก The compatibility with Docusaurus 2 is maintained, and there is no plan to drop it for now.

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.7.1 #1075
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy to 1.5.1 #1075

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/graphql to 1.0.1 #1075
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.6.1 #1075
  • ๐Ÿ“ฆ bump peer dependency @graphql-markdown/diff to 1.1.1 #1075
  • ๐Ÿ“ฆ bump peer dependency @graphql-markdown/helpers to 1.0.1 #1075
  • ๐Ÿ“ฆ bump peer dependency @graphql-markdown/printer-legacy to 1.5.1 #1075
  • ๐Ÿ“ฆ bump peer dependency graphql-config to 5.0.3 #1075

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/graphql to 1.0.1 #1075

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.6.1 #1075

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/graphql to 1.0.1 #1075
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.6.1 #1075

@graphql-markdown/[email protected]

  • ๐Ÿ“ udpate typedoc to fix compatibility with docusaurus v3 #1072

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.21.0...1.21.1

graphql-markdown - 1.21.0

Published by edno about 1 year ago

๐Ÿš€ BIG release ๐Ÿš€

This is an exceptionally big and packed release with a lot of changes, so read carefully the release notes before upgrading.

The main changes are under the hood as we migrated the codebase from Javascript to Typescript to simplify the coding experience but also to increase the code safety.

โš ๏ธ Breaking changes

  • Custom directive helpers have been moved to dedicated packages, see docs.

โœจ New features

  • onlyDocDirective filters the schema entities to be rendered in the documentation. This is the counterpart of skipDocDirective, based on a request from @brampurnot in #994. See documentation.
  • metatags adds HTML metadata to pages using Docusaurus head metadata, based on a request from @akillkumar in #1015. See documentation.
  • Helper directiveDescriptor now supports the description placeholder, where description is the default directive's description.

๐Ÿ› ๏ธ Other changes

  • Typing is available in a dedicated package @graphql-markdown/types.
  • Modules helpers, graphql and logger have been extracted from @graphql-markdown/utils into dedicated packages.
  • Logger has now a single method called log().
  • TS API is getting documented, see API in the docs.
  • More and better tests.
  • Upgrade dependencies version.

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.4...1.21.0

graphql-markdown - 1.21.0-next.0

Published by edno about 1 year ago

This is a pre-release following the code base migration from JS to TS.

Breaking change

  • Custom directive helpers have been moved to dedicated packages, see docs.

Patch change

  • Helper directiveDescriptor now supports description placeholder, where description is the default directive description.

Technical change

  • Typing is available in a dedicated package @graphql-markdown/types.
  • Modules helpers, graphql and logger have been extracted from @graphql-markdown/utils into their own package.
  • Logger has now a single method called Logger().
  • TS API is getting documented, see API in our docs.
  • More and better tests.
graphql-markdown - 1.20.4

Published by edno about 1 year ago

๐Ÿง‘โ€๐Ÿ’ป Technical release to freeze the last JS changes before the migration of the code to TS.

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.6.4

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.3...1.20.4

graphql-markdown - 1.20.3

Published by edno about 1 year ago

๐Ÿ› Fix a CSS issue for type badges in related type sections (see option printTypeOptions.relatedTypeSection).

  • Before fix ๐Ÿ˜ž
    Screenshot 2023-07-19 at 14-22-28 Deleted GraphQL-Markdown

  • After fix ๐Ÿ˜€
    Screenshot 2023-07-19 at 14-30-46 Deleted GraphQL-Markdown

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.6.3
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy to 1.4.3

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/printer-legacy to 1.4.3

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.2...1.20.3

graphql-markdown - 1.20.2

Published by edno over 1 year ago

โœจ New option printTypeOptions.codeSection and CLI flag --noCode for hiding the codeblock section, based on an initial request from @ris314 in https://github.com/graphql-markdown/graphql-markdown/issues/895. See documentation for more information.

Screenshot 2023-07-07 at 16-28-08 AddCourse GraphQL-Markdown

What's Changed

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.1...1.20.2

graphql-markdown - 1.20.1

Published by edno over 1 year ago

What's Changed

๐Ÿ“ฆ Update compatibility with prettier v3 when using pretty setting. ๐Ÿช„

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core to 1.6.1
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy to 1.4.1

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ chore(deps): update dependency prettier to v3 by @renovate in https://github.com/graphql-markdown/graphql-markdown/pull/892
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.5.1
  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/diff to 1.0.14
  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/printer-legacy to 1.4.1

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.5.1

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils to 1.5.1

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.0...1.20.1

graphql-markdown - 1.20.0

Published by edno over 1 year ago

โœจ GraphQL Config is now supported, see the documentation for more information and limitations ๐Ÿš€

This is the default set up when creating a new site using the template.

First install the package graphql-config, then you are ready to go.

npm install graphql-config

Example .graphqlrc:

schema: "https://graphql.anilist.co/"
extensions:
  graphql-markdown:
    linkRoot: "/examples/default"
    baseURL: "."
    homepage: "data/anilist.md"
    loaders:
      UrlLoader:
        module: "@graphql-tools/url-loader"
        options: 
          method: "POST"
    printTypeOptions:
      deprecated: "group"
    docOptions:
      pagination: false
      toc: false

What's Changed

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.19.0...1.20.0

graphql-markdown - 1.19.0

Published by edno over 1 year ago

โš ๏ธ This release introduces minor breaking changes, see section breaking changes.


๐Ÿท๏ธ Building upon customDirective released in 1.18.0, we added a new option tag that allows one to display custom badges (tags) in the documentation pages.

The feature is an extension of the customDirective by using the already available directive processing. It works the same way as descriptor, and it also comes with an helper directiveTag... more details in the documentation.

  customDirective: {
    beta: {
      tag: (directive) => ({
        text: directive?.name.toUpperCase(),
        classname: "badge--danger",
      }),
    },

Screenshot from 2023-06-03 11-27-49

Screenshot from 2023-06-03 11-28-21

Breaking changes

  • Since tags have now a dedicated handler, the directives declared in customDirective for descriptor won't display a badge. A helper helper.directiveTag is provided for backward compatibility.
    Users who want to keep the previous behavior just need to declare tag: helper.directiveTag for each directive declared.

    const { helper } = require("@graphql-markdown/utils");
    
    //---//
      auth: {
          descriptor: (directive, type) =>
            helper.directiveDescriptor(
              directive,
              type,
              "This requires the current user to be in `${requires}` role.",
            ),
          tag: helper.directiveTag,
        },
    
  • The deprecated "warning badge" has been changed into an admonition for a clearer UI.

    Screenshot from 2023-06-03 08-22-06

  • Last change is the change of position of the custom directive descriptions that are now after the type description instead of before.

    Screenshot from 2023-06-03 11-25-14

What's Changed

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils from 1.4.0 to 1.4.1

@graphql-markdown/[email protected]

graphql-markdown - 1.18.2

Published by edno over 1 year ago

โ‡๏ธ Add wildcard * support for customDirective, more details in the documentation.

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core from 1.4.1 to 1.4.2
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy from 1.3.1 to 1.3.2

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils from 1.4.0 to 1.4.1
  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/printer-legacy from 1.3.1 to 1.3.2
  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/diff from 1.0.10 to 1.0.11

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/utils from 1.4.0 to 1.4.1

@graphql-markdown/[email protected]

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.18.1...1.18.2

graphql-markdown - 1.18.1

Published by edno over 1 year ago

๐Ÿ› Fix missing code indentation for fields in some cases (#850) by @ljiang-ti in #851.

What's Changed

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump dependency @graphql-markdown/core from 1.4.0 to 1.4.1
  • ๐Ÿ“ฆ bump dependency @graphql-markdown/printer-legacy from 1.3.0 to 1.3.1

@graphql-markdown/[email protected]

  • ๐Ÿ“ฆ bump peerDependency @graphql-markdown/printer-legacy from 1.3.0 to 1.3.1

@graphql-markdown/[email protected]

Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.18.0...1.18.1

Package Rankings
Top 4.08% on Npmjs.org
Badges
Extracted from project README
GraphQL-Markdown Latest Version GitHub License Buy us a tree Commitizen friendly
Related Projects