@graphql-markdown/core 1.21.2 → 1.23.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAG/E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAE/E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC"}
@@ -22,7 +22,6 @@ Object.defineProperty(exports, "RenderTypeEntitiesEvents", { enumerable: true, g
22
22
  var generate_index_metafile_events_1 = require("./generate-index-metafile-events");
23
23
  Object.defineProperty(exports, "GenerateIndexMetafileEvents", { enumerable: true, get: function () { return generate_index_metafile_events_1.GenerateIndexMetafileEvents; } });
24
24
  // Re-export used only by unit tests via the events barrel.
25
- // fallow-ignore-next-line unused-export
26
25
  var print_type_events_1 = require("./print-type-events");
27
26
  Object.defineProperty(exports, "PrintTypeEvents", { enumerable: true, get: function () { return print_type_events_1.PrintTypeEvents; } });
28
27
  // Event classes
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
+ import type { OutputAdapter } from "@graphql-markdown/types";
6
7
  import type { CancellableEventOptions } from "@graphql-markdown/utils";
7
8
  import { DataEvent } from "@graphql-markdown/utils";
8
9
  /**
@@ -15,12 +16,15 @@ export declare class RenderFilesEvent extends DataEvent<{
15
16
  outputDir: string;
16
17
  rootDir: string;
17
18
  pages: unknown;
19
+ /** Destination the pages were written to; use it for any summary file. */
20
+ outputAdapter?: OutputAdapter;
18
21
  }> {
19
22
  constructor(data: {
20
23
  baseURL: string;
21
24
  outputDir: string;
22
25
  rootDir: string;
23
26
  pages: unknown;
27
+ outputAdapter?: OutputAdapter;
24
28
  }, options?: CancellableEventOptions);
25
29
  }
26
30
  //# sourceMappingURL=render-files.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-files.d.ts","sourceRoot":"","sources":["../../src/events/render-files.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,SAAS,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC;IACA,YACE,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;KAChB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
1
+ {"version":3,"file":"render-files.d.ts","sourceRoot":"","sources":["../../src/events/render-files.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,gBAAiB,SAAQ,SAAS,CAAC;IAC9C,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;IACf,0EAA0E;IAC1E,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;IACA,YACE,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,OAAO,EAAE,MAAM,CAAC;QAChB,KAAK,EAAE,OAAO,CAAC;QACf,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
@@ -3,6 +3,7 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
+ import type { OutputAdapter } from "@graphql-markdown/types";
6
7
  import type { CancellableEventOptions } from "@graphql-markdown/utils";
7
8
  import { DataEvent } from "@graphql-markdown/utils";
8
9
  /**
@@ -15,12 +16,15 @@ export declare class RenderTypeEntitiesEvent extends DataEvent<{
15
16
  name: string;
16
17
  filePath: string;
17
18
  outputDir: string;
19
+ /** Destination the page was written to; use it to read the page back. */
20
+ outputAdapter?: OutputAdapter;
18
21
  }> {
19
22
  constructor(data: {
20
23
  baseURL: string;
21
24
  name: string;
22
25
  filePath: string;
23
26
  outputDir: string;
27
+ outputAdapter?: OutputAdapter;
24
28
  }, options?: CancellableEventOptions);
25
29
  }
26
30
  //# sourceMappingURL=render-type-entities.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"render-type-entities.d.ts","sourceRoot":"","sources":["../../src/events/render-type-entities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,SAAS,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;IACA,YACE,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;KACnB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
1
+ {"version":3,"file":"render-type-entities.d.ts","sourceRoot":"","sources":["../../src/events/render-type-entities.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,uBAAwB,SAAQ,SAAS,CAAC;IACrD,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;IACA,YACE,IAAI,EAAE;QACJ,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,SAAS,EAAE,MAAM,CAAC;QAClB,aAAa,CAAC,EAAE,aAAa,CAAC;KAC/B,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @packageDocumentation
5
5
  */
6
- import type { GraphQLSchema, Maybe, SchemaMap } from "@graphql-markdown/types";
6
+ import type { GraphQLSchema, SchemaMap } from "@graphql-markdown/types";
7
7
  import type { CancellableEventOptions } from "@graphql-markdown/utils";
8
8
  import { DataEvent } from "@graphql-markdown/utils";
9
9
  /**
@@ -13,13 +13,13 @@ import { DataEvent } from "@graphql-markdown/utils";
13
13
  */
14
14
  export declare class SchemaEvent extends DataEvent<{
15
15
  schemaLocation?: string;
16
- schema?: Maybe<GraphQLSchema>;
17
- rootTypes?: Maybe<SchemaMap>;
16
+ schema?: GraphQLSchema | null;
17
+ rootTypes?: SchemaMap;
18
18
  }> {
19
19
  constructor(data: {
20
20
  schemaLocation?: string;
21
- schema?: Maybe<GraphQLSchema>;
22
- rootTypes?: Maybe<SchemaMap>;
21
+ schema?: GraphQLSchema | null;
22
+ rootTypes?: SchemaMap;
23
23
  }, options?: CancellableEventOptions);
24
24
  }
25
25
  //# sourceMappingURL=schema-load.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema-load.d.ts","sourceRoot":"","sources":["../../src/events/schema-load.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAC/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC9B,CAAC;IACA,YACE,IAAI,EAAE;QACJ,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;QAC9B,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;KAC9B,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
1
+ {"version":3,"file":"schema-load.d.ts","sourceRoot":"","sources":["../../src/events/schema-load.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,SAAS,CAAC;IACzC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;IAC9B,SAAS,CAAC,EAAE,SAAS,CAAC;CACvB,CAAC;IACA,YACE,IAAI,EAAE;QACJ,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,MAAM,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;QAC9B,SAAS,CAAC,EAAE,SAAS,CAAC;KACvB,EACD,OAAO,CAAC,EAAE,uBAAuB,EAGlC;CACF"}
@@ -100,5 +100,5 @@ export declare const resolveSkipAndOnlyDirectives: (onlyDocDirective: Maybe<Dire
100
100
  * @param options - Complete configuration for the documentation generation
101
101
  * @returns Promise that resolves when documentation is fully generated
102
102
  */
103
- export declare const generateDocFromSchema: ({ baseURL, customDirective, diffMethod, docOptions, force, groupByDirective, homepageLocation, linkRoot, loaders: loadersList, loggerModule, formatter, metatags, onlyDocDirective, outputDir, prettify, printTypeOptions, schemaLocation, skipDocDirective, tmpDir, }: GeneratorOptions) => Promise<void>;
103
+ export declare const generateDocFromSchema: ({ baseURL, customDirective, decorators, diffMethod, docOptions, force, groupByDirective, homepageLocation, linkRoot, loaders: loadersList, loggerModule, formatter, metatags, onlyDocDirective, outputAdapter, outputDir, prettify, printTypeOptions, schemaLocation, skipDocDirective, tmpDir, }: GeneratorOptions) => Promise<void>;
104
104
  //# sourceMappingURL=generator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generator.d.ts","sourceRoot":"","sources":["../src/generator.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAEV,aAAa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SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,KAAK,EACL,QAAQ,EACR,WAAW,EAEX,cAAc,EAEf,MAAM,yBAAyB,CAAC;AA+DjC;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,cACb,KAAK,CAAC,WAAW,GAAG,MAAM,CAAC,KACrC,OAAO,CAAC,OAAO,CAYjB,CAAC;AAiBF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,aACzB,OAAO,gBACJ,MAAM,KACnB,CAAC,GAAG,SAmBN,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,yBAAyB,cACzB,OAAO,SACX,QAAQ,KACd,OAAO,CAAC,SAAS,CAAC,GAAG,SA+CvB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,mBACZ,MAAM,eACT,KAAK,CAAC,YAAY,CAAC,KAC/B,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAY9B,CAAC;AAEF;;;;;;;;;;;;;GAaG;AAEH,eAAO,MAAM,sBAAsB,WACzB,aAAa,kBACL,MAAM,cACV,KAAK,CAAC,cAAc,CAAC,UACzB,MAAM,KACb,OAAO,CAAC,OAAO,CAWjB,CAAC;AAEF;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,4BAA4B,qBACrB,KAAK,CAAC,aAAa,GAAG,aAAa,EAAE,CAAC,oBACtC,KAAK,CAAC,aAAa,GAAG,aAAa,EAAE,CAAC,UAChD,aAAa,KACpB,gBAAgB,EAAE,EAsBpB,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,qBAAqB,sSAsB/B,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAkOjC,CAAC"}
package/dist/generator.js CHANGED
@@ -36,6 +36,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.generateDocFromSchema = exports.resolveSkipAndOnlyDirectives = exports.checkSchemaDifferences = exports.loadGraphqlSchema = exports.getFormatterFromMDXModule = exports.getMDXModuleProperty = exports.loadMDXModule = void 0;
37
37
  const logger_1 = __importStar(require("@graphql-markdown/logger"));
38
38
  const graphql_1 = require("@graphql-markdown/graphql");
39
+ const printer_legacy_1 = require("@graphql-markdown/printer-legacy");
39
40
  const utils_1 = require("@graphql-markdown/utils");
40
41
  const node_path_1 = require("node:path");
41
42
  const config_1 = require("./config");
@@ -100,6 +101,7 @@ const FORMATTER_FUNCTION_NAMES = [
100
101
  "formatMDXFrontmatter",
101
102
  "formatMDXLink",
102
103
  "formatMDXNameEntity",
104
+ "formatMDXPermalink",
103
105
  "formatMDXSpecifiedByLink",
104
106
  ];
105
107
  /**
@@ -215,7 +217,6 @@ exports.loadGraphqlSchema = loadGraphqlSchema;
215
217
  * When no changes are detected, a log message is generated indicating that the schema is unchanged.
216
218
  */
217
219
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
218
- // fallow-ignore-next-line unused-export
219
220
  const checkSchemaDifferences = async (schema, schemaLocation, diffMethod, tmpDir) => {
220
221
  let changed = true;
221
222
  if (diffMethod !== config_1.DiffMethod.NONE) {
@@ -241,7 +242,6 @@ exports.checkSchemaDifferences = checkSchemaDifferences;
241
242
  * the second with resolved "skip" directives. Only defined directives are included.
242
243
  */
243
244
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
244
- // fallow-ignore-next-line unused-export
245
245
  const resolveSkipAndOnlyDirectives = (onlyDocDirective, skipDocDirective, schema) => {
246
246
  return [onlyDocDirective, skipDocDirective].map((directive) => {
247
247
  // Normalize to array and filter out null/undefined
@@ -278,7 +278,7 @@ exports.resolveSkipAndOnlyDirectives = resolveSkipAndOnlyDirectives;
278
278
  * @param options - Complete configuration for the documentation generation
279
279
  * @returns Promise that resolves when documentation is fully generated
280
280
  */
281
- const generateDocFromSchema = async ({ baseURL, customDirective, diffMethod, docOptions, force, groupByDirective, homepageLocation, linkRoot, loaders: loadersList, loggerModule, formatter, metatags, onlyDocDirective, outputDir, prettify, printTypeOptions, schemaLocation, skipDocDirective, tmpDir, }) => {
281
+ const generateDocFromSchema = async ({ baseURL, customDirective, decorators, diffMethod, docOptions, force, groupByDirective, homepageLocation, linkRoot, loaders: loadersList, loggerModule, formatter, metatags, onlyDocDirective, outputAdapter, outputDir, prettify, printTypeOptions, schemaLocation, skipDocDirective, tmpDir, }) => {
282
282
  const start = process.hrtime.bigint();
283
283
  await (0, logger_1.default)(loggerModule);
284
284
  const mdxModule = await (0, exports.loadMDXModule)(formatter);
@@ -309,7 +309,14 @@ const generateDocFromSchema = async ({ baseURL, customDirective, diffMethod, doc
309
309
  events.emit(events_1.SchemaEvents.BEFORE_MAP, new events_1.SchemaEvent({ schema }));
310
310
  const rootTypes = (0, graphql_1.getSchemaMap)(schema);
311
311
  events.emit(events_1.SchemaEvents.AFTER_MAP, new events_1.SchemaEvent({ schema, rootTypes }));
312
- const customDirectives = (0, graphql_1.getCustomDirectives)(rootTypes, customDirective);
312
+ // `customDirective` is schema-resolved here, then immediately converted
313
+ // into decorators and merged into `decorators` itself: the printer never
314
+ // sees `customDirective` or the resolved `CustomDirectiveMap` it produces,
315
+ // only the merged decorators (see `buildCustomDirectiveDecorators`).
316
+ const decoratorsWithCustomDirective = {
317
+ ...(0, printer_legacy_1.buildCustomDirectiveDecorators)((0, graphql_1.getCustomDirectives)(rootTypes, customDirective)),
318
+ ...decorators,
319
+ };
313
320
  const groups = (0, graphql_1.getGroups)(rootTypes, groupByDirective);
314
321
  // Extract formatter from the MDX module (for direct function calls)
315
322
  const mdxFormatter = (0, exports.getFormatterFromMDXModule)(mdxModule, docOptions);
@@ -324,7 +331,7 @@ const generateDocFromSchema = async ({ baseURL, customDirective, diffMethod, doc
324
331
  },
325
332
  // options
326
333
  {
327
- customDirectives,
334
+ decorators: decoratorsWithCustomDirective,
328
335
  groups,
329
336
  meta: {
330
337
  generatorFrameworkName: docOptions?.generatorFrameworkName,
@@ -350,12 +357,21 @@ const generateDocFromSchema = async ({ baseURL, customDirective, diffMethod, doc
350
357
  else {
351
358
  mdxExtension = FILE_EXTENSION.MD;
352
359
  }
353
- const renderer = await (0, renderer_1.getRenderer)(printer, outputDir, baseURL, groups, prettify, {
354
- ...docOptions,
355
- deprecated: printTypeOptions?.deprecated,
356
- force,
357
- hierarchy: printTypeOptions?.hierarchy,
358
- }, mdxExtension);
360
+ const renderer = await (0, renderer_1.getRenderer)({
361
+ printer,
362
+ outputDir,
363
+ baseURL,
364
+ group: groups,
365
+ prettify,
366
+ docOptions: {
367
+ ...docOptions,
368
+ deprecated: printTypeOptions?.deprecated,
369
+ force,
370
+ hierarchy: printTypeOptions?.hierarchy,
371
+ },
372
+ mdxExtension,
373
+ outputAdapter,
374
+ });
359
375
  // Pre-collect all categories before rendering to ensure consistent positions
360
376
  renderer.preCollectCategories(Object.keys(rootTypes));
361
377
  const beforeRenderRootTypesEvent = new events_1.RenderRootTypesEvent({
@@ -379,14 +395,26 @@ const generateDocFromSchema = async ({ baseURL, customDirective, diffMethod, doc
379
395
  outputDir,
380
396
  });
381
397
  await events.emitAsync(events_1.RenderHomepageEvents.AFTER_RENDER, afterRenderHomepageEvent);
382
- await events.emitAsync(events_1.RenderFilesEvents.AFTER_RENDER, new events_1.RenderFilesEvent({
398
+ const { errors: renderFilesErrors } = await events.emitAsync(events_1.RenderFilesEvents.AFTER_RENDER, new events_1.RenderFilesEvent({
383
399
  baseURL,
384
400
  outputDir,
385
401
  rootDir: (0, node_path_1.dirname)(outputDir),
386
402
  pages,
403
+ // the resolved adapter, so a hook never has to fall back for itself
404
+ outputAdapter: renderer.outputAdapter,
387
405
  }));
406
+ // without this a failure to write mdBook's SUMMARY.md is dropped, and the
407
+ // success line below claims the documentation is complete
408
+ (0, renderer_1.logHandlerErrors)(events_1.RenderFilesEvents.AFTER_RENDER, renderFilesErrors);
388
409
  const duration = (Number(process.hrtime.bigint() - start) / NS_PER_SEC).toFixed(SEC_DECIMALS);
389
- (0, logger_1.log)(`Documentation successfully generated in "${outputDir}" with base URL "${baseURL}".`, "success");
410
+ // a formatter that could not finish its output must not be reported as a
411
+ // success: mdBook cannot build without the SUMMARY.md written by that hook
412
+ if (renderFilesErrors.length > 0) {
413
+ (0, logger_1.log)(`Documentation generated in "${outputDir}" with base URL "${baseURL}", but ${renderFilesErrors.length} post-processing error(s) occurred: the output is incomplete.`, logger_1.LogLevel.error);
414
+ }
415
+ else {
416
+ (0, logger_1.log)(`Documentation successfully generated in "${outputDir}" with base URL "${baseURL}".`, "success");
417
+ }
390
418
  (0, logger_1.log)(`${pages.flat().length} pages generated in ${duration}s from schema "${(0, utils_1.toString)(schemaLocation)}".`);
391
419
  };
392
420
  exports.generateDocFromSchema = generateDocFromSchema;
@@ -28,7 +28,7 @@ export declare const graphQLConfigExtension: GraphQLExtensionDeclaration;
28
28
  * @property throwOnMissing Whether to throw when the config file is missing.
29
29
  * @property throwOnEmpty Whether to throw when the config is empty.
30
30
  */
31
- interface ThrowOptions {
31
+ export interface ThrowOptions {
32
32
  throwOnMissing?: boolean;
33
33
  throwOnEmpty?: boolean;
34
34
  }
@@ -85,5 +85,4 @@ export declare const setLoaderOptions: (loaders: LoaderOption, options: PackageO
85
85
  * ```
86
86
  */
87
87
  export declare const loadConfiguration: (id: Maybe<string>, options?: Maybe<PackageOptionsConfig>, { throwOnMissing, throwOnEmpty }?: ThrowOptions) => Promise<Maybe<Readonly<ExtensionProjectConfig>>>;
88
- export {};
89
88
  //# sourceMappingURL=graphql-config.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"graphql-config.d.ts","sourceRoot":"","sources":["../src/graphql-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAEV,sBAAsB,EACtB,2BAA2B,EAC3B,YAAY,EACZ,KAAK,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAgBjC;;;;;;;;;;;;GAYG;AAGH,eAAO,MAAM,sBAAsB,EAAE,2BAEpC,CAAC;AAEF;;;;;;GAMG;AACH,UAAU,YAAY;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAWD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,eAAO,MAAM,gBAAgB,YAClB,YAAY,WACZ,oBAAoB,KAC5B,YAeF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,iBAAiB,OACxB,KAAK,CAAC,MAAM,CAAC,YACP,KAAK,CAAC,oBAAoB,CAAC,qCACH,YAAY,KAC7C,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAkDjD,CAAC"}
1
+ {"version":3,"file":"graphql-config.d.ts","sourceRoot":"","sources":["../src/graphql-config.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,EAEV,sBAAsB,EACtB,2BAA2B,EAC3B,YAAY,EACZ,KAAK,EAEL,oBAAoB,EACrB,MAAM,yBAAyB,CAAC;AAgBjC;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,sBAAsB,EAAE,2BAEpC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAWD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,eAAO,MAAM,gBAAgB,YAClB,YAAY,WACZ,oBAAoB,KAC5B,YAeF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,eAAO,MAAM,iBAAiB,OACxB,KAAK,CAAC,MAAM,CAAC,YACP,KAAK,CAAC,oBAAoB,CAAC,qCACH,YAAY,KAC7C,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAkDjD,CAAC"}
@@ -22,7 +22,6 @@ const EXTENSION_NAME = "graphql-markdown";
22
22
  * ```
23
23
  */
24
24
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
25
- // fallow-ignore-next-line unused-export
26
25
  const graphQLConfigExtension = () => {
27
26
  return { name: EXTENSION_NAME };
28
27
  };
@@ -59,7 +58,6 @@ const DEFAULT_THROW_OPTIONS = {
59
58
  * ```
60
59
  */
61
60
  // Used only by unit tests for direct whitebox coverage; not part of the production public API.
62
- // fallow-ignore-next-line unused-export
63
61
  const setLoaderOptions = (loaders, options) => {
64
62
  for (const loader in loaders) {
65
63
  if ((0, validation_1.isLoaderString)(loaders[loader])) {
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export { generateDocFromSchema } from "./generator";
5
5
  export { buildConfig } from "./config";
6
- export { getEvents, resetEvents, type EmitResult } from "./event-emitter";
6
+ export { getEvents, resetEvents, type CancellableEventEmitter, type EmitResult, } from "./event-emitter";
7
7
  export { registerMDXEventHandlers } from "./event-handlers";
8
8
  export { EVENT_CALLBACK_MAP } from "./event-map";
9
9
  export { SchemaEvents } from "./events/schema-events";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAGvC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAGjD,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE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,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,yCAAyC,CAAC;AACtF,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAG7D,YAAY,EAAE,WAAW,IAAI,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC3E,YAAY,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AACvE,YAAY,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAC7E,YAAY,EAAE,0BAA0B,EAAE,MAAM,kCAAkC,CAAC;AACnF,YAAY,EACV,wBAAwB,EACxB,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC"}
package/dist/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  /**
3
3
  * @primaryExport
4
4
  */
5
- /* istanbul ignore file */
6
5
  Object.defineProperty(exports, "__esModule", { value: true });
7
6
  exports.CancellableEvent = exports.PrintTypeEvents = exports.GenerateIndexMetafileEvents = exports.RenderTypeEntitiesEvents = exports.RenderHomepageEvents = exports.RenderRootTypesEvents = exports.DiffEvents = exports.SchemaEvents = exports.EVENT_CALLBACK_MAP = exports.registerMDXEventHandlers = exports.resetEvents = exports.getEvents = exports.buildConfig = exports.generateDocFromSchema = void 0;
8
7
  var generator_1 = require("./generator");
@@ -1,4 +1,4 @@
1
- import type { ApiGroupOverrideType, Category, Maybe, IPrinter, RendererDocOptions, SchemaEntitiesGroupMap, SchemaEntity } from "@graphql-markdown/types";
1
+ import type { ApiGroupOverrideType, Category, Maybe, IPrinter, OutputAdapter, RendererDocOptions, SchemaEntitiesGroupMap, SchemaEntity } from "@graphql-markdown/types";
2
2
  /**
3
3
  * Default group names for API types and non-API types.
4
4
  * This constant provides the base folder structure for organizing GraphQL schema entities.
@@ -63,6 +63,37 @@ export interface CategoryMetafileOptions {
63
63
  sidebarPosition?: number;
64
64
  styleClass?: string;
65
65
  }
66
+ /**
67
+ * Reports errors thrown by event handlers.
68
+ *
69
+ * Handler errors are collected rather than thrown, so without this they are
70
+ * dropped and the formatter's post-processing silently does nothing.
71
+ *
72
+ * @param eventName - Name of the emitted event
73
+ * @param errors - Errors collected from the handlers
74
+ */
75
+ export declare const logHandlerErrors: (eventName: string, errors: Error[]) => void;
76
+ /**
77
+ * Constructor options for {@link Renderer}, and input to {@link getRenderer}.
78
+ */
79
+ export interface RendererOptions {
80
+ /** The printer instance used to convert GraphQL types to markdown */
81
+ printer: typeof IPrinter;
82
+ /** Directory where documentation will be generated */
83
+ outputDir: string;
84
+ /** Base URL for the documentation */
85
+ baseURL: string;
86
+ /** Optional grouping configuration for schema entities */
87
+ group: Maybe<SchemaEntitiesGroupMap>;
88
+ /** Whether to format the generated markdown */
89
+ prettify: boolean;
90
+ /** Additional documentation options */
91
+ docOptions: Maybe<RendererDocOptions>;
92
+ /** Optional MDX file extension to use */
93
+ mdxExtension: string;
94
+ /** Destination for generated pages; defaults to the local filesystem */
95
+ outputAdapter?: OutputAdapter | null;
96
+ }
66
97
  /**
67
98
  * Core renderer class responsible for generating documentation files from GraphQL schema entities.
68
99
  * Handles the conversion of schema types to markdown/MDX documentation with proper organization.
@@ -81,22 +112,17 @@ export declare class Renderer {
81
112
  readonly prettify: boolean;
82
113
  readonly options: Maybe<RendererDocOptions>;
83
114
  readonly mdxExtension: string;
115
+ readonly outputAdapter: OutputAdapter;
84
116
  private readonly printer;
85
117
  private readonly rootLevelPositionManager;
86
118
  private readonly categoryPositionManager;
87
119
  /**
88
120
  * Creates a new Renderer instance.
89
121
  *
90
- * @param printer - The printer instance used to convert GraphQL types to markdown
91
- * @param outputDir - Directory where documentation will be generated
92
- * @param baseURL - Base URL for the documentation
93
- * @param group - Optional grouping configuration for schema entities
94
- * @param prettify - Whether to format the generated markdown
95
- * @param docOptions - Additional documentation options
96
- * @param mdxExtension - Optional MDX file extension to use
122
+ * @param options - Renderer construction options
97
123
  * @example
98
124
  */
99
- constructor(printer: typeof IPrinter, outputDir: string, baseURL: string, group: Maybe<SchemaEntitiesGroupMap>, prettify: boolean, docOptions: Maybe<RendererDocOptions>, mdxExtension: string);
125
+ constructor({ printer, outputDir, baseURL, group, prettify, docOptions, mdxExtension, outputAdapter, }: RendererOptions);
100
126
  /**
101
127
  * Generates an index metafile for a category directory if MDX support is available.
102
128
  *
@@ -140,10 +166,12 @@ export declare class Renderer {
140
166
  * @param dirPath - The directory path where the file should be saved
141
167
  * @param name - The name of the type entity
142
168
  * @param type - The type entity to render
169
+ * @param operationNamespaceParts - The namespace parts for a namespaced operation
170
+ * @param entity - The schema entity kind being rendered, e.g. `queries`
143
171
  * @returns The category information for the rendered entity or undefined
144
172
  * @example
145
173
  */
146
- renderTypeEntities(dirPath: string, name: string, type: unknown, operationNamespaceParts?: string[]): Promise<Maybe<Category>>;
174
+ renderTypeEntities(dirPath: string, name: string, type: unknown, operationNamespaceParts?: string[], entity?: SchemaEntity): Promise<Maybe<Category>>;
147
175
  /**
148
176
  * Pre-collects all category names that will be generated during rendering.
149
177
  * This allows the position manager to assign consistent positions before
@@ -217,31 +245,37 @@ export declare class Renderer {
217
245
  * @private
218
246
  */
219
247
  private formatCategoryFolderName;
248
+ /**
249
+ * Sends a generated page to the configured output destination.
250
+ *
251
+ * Prettifying happens here rather than in the destination so every adapter
252
+ * receives identical content, and a custom adapter cannot accidentally skip
253
+ * the `pretty` option.
254
+ *
255
+ * @param filePath - Absolute path of the page, rooted at `outputDir`
256
+ * @param content - Rendered page content
257
+ */
258
+ private writeOutput;
220
259
  }
221
260
  /**
222
261
  * Factory function to create and initialize a Renderer instance.
223
262
  * Creates the output directory and returns a configured renderer.
224
263
  *
225
- * @param printer - The printer instance to use for rendering types
226
- * @param outputDir - The output directory for generated documentation
227
- * @param baseURL - The base URL for the documentation
228
- * @param group - Optional grouping configuration
229
- * @param prettify - Whether to prettify the output markdown
230
- * @param docOptions - Additional documentation options
231
- * @param mdxExtension - Extension to use for MDX files
264
+ * @param options - Renderer construction options
232
265
  * @returns A configured Renderer instance
233
266
  *
234
267
  * @example
235
268
  * ```typescript
236
- * const renderer = await getRenderer(
237
- * myPrinter,
238
- * './docs',
239
- * '/api',
240
- * groupConfig,
241
- * true,
242
- * { force: true, index: true }
243
- * );
269
+ * const renderer = await getRenderer({
270
+ * printer: myPrinter,
271
+ * outputDir: './docs',
272
+ * baseURL: '/api',
273
+ * group: groupConfig,
274
+ * prettify: true,
275
+ * docOptions: { force: true, index: true },
276
+ * mdxExtension: '.mdx',
277
+ * });
244
278
  * ```
245
279
  */
246
- export declare const getRenderer: (printer: typeof IPrinter, outputDir: string, baseURL: string, group: Maybe<SchemaEntitiesGroupMap>, prettify: boolean, docOptions: Maybe<RendererDocOptions>, mdxExtension: string) => Promise<InstanceType<typeof Renderer>>;
280
+ export declare const getRenderer: ({ printer, outputDir, baseURL, group, prettify, docOptions, mdxExtension, outputAdapter, }: RendererOptions) => Promise<InstanceType<typeof Renderer>>;
247
281
  //# sourceMappingURL=renderer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../src/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,QAAQ,EAER,KAAK,EAEL,QAAQ,EACR,kBAAkB,EAClB,sBAAsB,EACtB,YAAY,EAGb,MAAM,yBAAyB,CAAC;AA2FjC;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,eAAO,MAAM,UAAU,EAAE,QAAQ,CAAC,oBAAoB,CAG5C,CAAC;AAEX;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,iBAAiB,SACtB,OAAO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