@graphql-markdown/printer-legacy
Advanced tools
Changelog
1.6.0 - 2021-11-16
This version comes with a new feature for grouping documentation using GraphQL directives, by @coder2034. You can read more about it in the documentation, and you can see a demo here.
Changelog
1.5.0 - 2021-10-09
Starting version 1.5.0
, docusaurus2-graphql-doc-generator
only provides graphql-file-loader
document loader out-of-the-box.
Thus, by default, the schema
default loading expects a local GraphQL schema definition file (*.graphql
).
See loaders
option documentation in README file.
For a full compatibility with previous versions, add the following packages to your Docusaurus project:
yarn add @graphql-tools/url-loader @graphql-tools/json-file-loader
Once installed, you can declare both loaders into docusaurus2-graphql-doc-generator
configuration:
plugins: [
[
'@edno/docusaurus2-graphql-doc-generator',
{
//... existing configuration
loaders: {
UrlLoader: "@graphql-tools/url-loader",
JsonFileLoader: "@graphql-tools/json-file-loader"
}
},
],
]
Note, you don't need to re-declare graphql-file-loader
since it is provided out-of-the-box.
Why this change?
There are several reasons behing this change:
- Reducing dependencies footprint and management
- More flexibility as more GraphQL document loaders become available
- Preparation work for version 2.0
More dependencies removed: moment
, chalk
(replaced by picocolors
), colors
(replaced by picocolors
).
[Changes][1.5.0]
<a id="1.4.3"></a>
Changelog
1.4.0 - 2021-08-15
@jineshshah36 spotted a bug (#234) and submitted a fix that was worth another release 😃
Fix default value handling for Int
when not set (#235 by @jineshshah36)
Upgrade graphql-tools
to version 7.
[Changes][1.4.0]
<a id="1.3.1"></a>