UNPKG

@graphql-markdown/core

Version:

GraphQL-Markdown core package for generating Markdown documentation from a GraphQL schema.

25 lines (24 loc) 1.27 kB
/** * Core generator functionality for GraphQL Markdown documentation. * * This module contains the main functionality for generating markdown documentation * from GraphQL schemas. It handles schema loading, processing, and markdown generation * through appropriate printers and renderers. * * @packageDocumentation */ import type { GeneratorOptions } from "@graphql-markdown/types"; /** * Main entry point for generating Markdown documentation from a GraphQL schema. * * This function coordinates the entire documentation generation process: * - Loads and validates the schema * - Checks for schema changes if diffing is enabled * - Processes directives and groups * - Initializes printers and renderers * - Generates markdown files * * @param options - Complete configuration for the documentation generation * @returns Promise that resolves when documentation is fully generated */ export declare const generateDocFromSchema: ({ baseURL, customDirective, diffMethod, docOptions, force, groupByDirective, homepageLocation, linkRoot, loaders: loadersList, loggerModule, mdxParser, metatags, onlyDocDirective, outputDir, prettify, printer: printerModule, printTypeOptions, schemaLocation, skipDocDirective, tmpDir, }: GeneratorOptions) => Promise<void>;