@graphql-markdown/docusaurus 1.21.1 → 1.22.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/dist/index.d.ts +2 -4
- package/dist/index.js +3 -2
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import type { LoadContext, Plugin, PluginOptions } from "@docusaurus/types";
|
|
2
|
-
import type { ConfigOptions } from "@graphql-markdown/types";
|
|
3
|
-
export default function pluginGraphQLDocGenerator(_: LoadContext, options: ConfigOptions & Partial<PluginOptions>
|
|
4
|
-
runOnBuild: boolean | undefined;
|
|
5
|
-
}): Plugin;
|
|
2
|
+
import type { ConfigOptions, ExperimentalConfigOptions } from "@graphql-markdown/types";
|
|
3
|
+
export default function pluginGraphQLDocGenerator(_: LoadContext, options: ConfigOptions & ExperimentalConfigOptions & Partial<PluginOptions>): Plugin;
|
package/dist/index.js
CHANGED
|
@@ -36,10 +36,8 @@ function pluginGraphQLDocGenerator(_, options) {
|
|
|
36
36
|
.option("-l, --link <linkRoot>", "Root for links in documentation")
|
|
37
37
|
.option("-h, --homepage <homepage>", "File location for doc landing page")
|
|
38
38
|
.option("--noCode", "Disable code section for types")
|
|
39
|
-
.option("--noPagination", "Disable page navigation buttons")
|
|
40
39
|
.option("--noParentType", "Disable parent type name as field prefix")
|
|
41
40
|
.option("--noRelatedType", "Disable related types sections")
|
|
42
|
-
.option("--noToc", "Disable page table of content")
|
|
43
41
|
.option("--noTypeBadges", "Disable badges for types")
|
|
44
42
|
.option("--index", "Enable generated index for categories")
|
|
45
43
|
.option("-f, --force", "Force document generation")
|
|
@@ -50,6 +48,9 @@ function pluginGraphQLDocGenerator(_, options) {
|
|
|
50
48
|
.option("--skip <@directive...>", "Skip types with matching directive")
|
|
51
49
|
.option("--deprecated <option>", "Option for printing deprecated entities: `default`, `group` or `skip`")
|
|
52
50
|
.option("--pretty", "Prettify generated files")
|
|
51
|
+
// DEPRECATED options
|
|
52
|
+
.option("--noToc", "Disable page table of content [DEPRECATED]")
|
|
53
|
+
.option("--noPagination", "Disable page navigation buttons [DEPRECATED]")
|
|
53
54
|
.action(async (cliOptions) => {
|
|
54
55
|
const config = await (0, core_1.buildConfig)(options, cliOptions, options.id);
|
|
55
56
|
await (0, core_1.generateDocFromSchema)({
|
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.22.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -50,13 +50,13 @@
|
|
|
50
50
|
"clean": "rm -rf ./dist"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@graphql-markdown/core": "^1.
|
|
54
|
-
"@graphql-markdown/logger": "^1.0.
|
|
55
|
-
"@graphql-markdown/printer-legacy": "^1.
|
|
53
|
+
"@graphql-markdown/core": "^1.8.0",
|
|
54
|
+
"@graphql-markdown/logger": "^1.0.1",
|
|
55
|
+
"@graphql-markdown/printer-legacy": "^1.6.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@docusaurus/types": "^
|
|
59
|
-
"@graphql-markdown/types": "^1.0.
|
|
58
|
+
"@docusaurus/types": "^3.0.0",
|
|
59
|
+
"@graphql-markdown/types": "^1.0.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@docusaurus/logger": "*"
|