@graphql-markdown/docusaurus 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -4
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
npm create graphql-markdown-docs@latest -- --framework docusaurus
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
> _If you already have an existing Docusaurus installation, then see the [documentation](https://graphql-markdown.dev/docs/get-started/#
|
|
17
|
+
> _If you already have an existing Docusaurus installation, then see the [documentation](https://graphql-markdown.dev/docs/get-started/#docusaurus) for alternative options._
|
|
18
18
|
|
|
19
19
|
## Usage
|
|
20
20
|
|
package/dist/index.d.ts
CHANGED
|
@@ -6,9 +6,8 @@
|
|
|
6
6
|
import type { LoadContext, Plugin, PluginOptions } from "@docusaurus/types";
|
|
7
7
|
import type { GraphQLMarkdownCliOptions } from "@graphql-markdown/types";
|
|
8
8
|
/**
|
|
9
|
-
* Docusaurus plugin wrapper that
|
|
10
|
-
*
|
|
11
|
-
* the `graphql-to-doc` command on the local CLI.
|
|
9
|
+
* Docusaurus plugin wrapper that registers the GraphQL-Markdown
|
|
10
|
+
* `graphql-to-doc` command on the local CLI.
|
|
12
11
|
*
|
|
13
12
|
* @param _ - Load context (unused).
|
|
14
13
|
* @param options - GraphQL-Markdown CLI options plus Docusaurus plugin options.
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AA4CzE
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yBAAyB,CAAC;AA4CzE;;;;;;;GAOG;AACH,wBAA8B,yBAAyB,CACrD,CAAC,EAAE,WAAW,EACd,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC,GAC1D,OAAO,CAAC,MAAM,CAAC,CAkCjB;AAED,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -22,9 +22,8 @@ const assertCommanderCompatibleCommand = (value) => {
|
|
|
22
22
|
}
|
|
23
23
|
};
|
|
24
24
|
/**
|
|
25
|
-
* Docusaurus plugin wrapper that
|
|
26
|
-
*
|
|
27
|
-
* the `graphql-to-doc` command on the local CLI.
|
|
25
|
+
* Docusaurus plugin wrapper that registers the GraphQL-Markdown
|
|
26
|
+
* `graphql-to-doc` command on the local CLI.
|
|
28
27
|
*
|
|
29
28
|
* @param _ - Load context (unused).
|
|
30
29
|
* @param options - GraphQL-Markdown CLI options plus Docusaurus plugin options.
|
|
@@ -50,7 +49,7 @@ async function pluginGraphQLDocGenerator(_, options) {
|
|
|
50
49
|
generatorFrameworkVersion: utils_1.DOCUSAURUS_VERSION,
|
|
51
50
|
...options.docOptions,
|
|
52
51
|
},
|
|
53
|
-
}, LOGGER_MODULE, options.formatter ?? MDX_PACKAGE);
|
|
52
|
+
}, LOGGER_MODULE, options.formatter ?? MDX_PACKAGE, { trigger: "docusaurus" });
|
|
54
53
|
assertCommanderCompatibleCommand(command);
|
|
55
54
|
cli.addCommand(command);
|
|
56
55
|
},
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/graphql-markdown/graphql-markdown/issues"
|
|
7
7
|
},
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.39.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -74,16 +74,16 @@
|
|
|
74
74
|
"test:watch": "vitest --watch"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@graphql-markdown/cli": "",
|
|
78
|
-
"@graphql-markdown/formatters": "",
|
|
79
|
-
"@graphql-markdown/logger": "",
|
|
80
|
-
"@graphql-markdown/types": "",
|
|
81
|
-
"@graphql-markdown/utils": "",
|
|
77
|
+
"@graphql-markdown/cli": "^1.2.0",
|
|
78
|
+
"@graphql-markdown/formatters": "^1.2.0",
|
|
79
|
+
"@graphql-markdown/logger": "^1.1.3",
|
|
80
|
+
"@graphql-markdown/types": "^1.17.0",
|
|
81
|
+
"@graphql-markdown/utils": "^1.14.0",
|
|
82
82
|
"@docusaurus/utils": "3.10.1"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@docusaurus/types": "3.10.1",
|
|
86
|
-
"@graphql-markdown/tooling-config": ""
|
|
86
|
+
"@graphql-markdown/tooling-config": "^1.0.0"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
89
|
"@docusaurus/logger": "*"
|