@graphql-markdown/docusaurus
Advanced tools
Changelog
1.24.0 - 2024-02-19
:robot: 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 |
|---|---|
||
|
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
[Changes][1.24.0]
<a id="1.23.0"></a>
Changelog
1.23.0 - 2024-02-10
:sparkle: 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).
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
[Changes][1.23.0]
<a id="1.22.0"></a>
Changelog
1.22.0 - 2023-12-27
🧑🔧 A new setting docOptions.frontMatter
makes it 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
},
},
},
],
],
[DEPRECATED] This option deprecates the options docOptions.pagination
and docOptions.toc
(more details in the documentation).
Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.21.3...1.22.0
[Changes][1.22.0]
<a id="1.21.3"></a>
Changelog
1.21.2 - 2023-11-22
:magic_wand: Improve compatibility with Docusaurus 3 by using the new admonition format for the deprecated
admonition (see #1096).
| Docusaurus 2 | Docusaurus 3 | |---|---| |<code>:::caution DEPRECATED</code>|<code>:::warning[DEPRECATED]</code>|
Changelog
1.21.0 - 2023-09-30
This is an exceptionally big release packed 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.
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.directiveDescriptor
now supports the description
placeholder, where description
is the default directive's description.@graphql-markdown/types
.@graphql-markdown/utils
into dedicated packages.Full Changelog: https://github.com/graphql-markdown/graphql-markdown/compare/1.20.4...1.21.0
[Changes][1.21.0]
<a id="1.20.4"></a>