Skip to content

docOptions from the configuration file do not affect the generation result #2341

@XAOPT

Description

@XAOPT

Describe the bug

In my case, docOptions from the configuration file do not affect the generation result.
Pagination_next etc doesn't appears in generated files.

I believe, problem is here:
https://github.com/graphql-markdown/graphql-markdown/blob/main/packages/docusaurus/src/index.ts#L52

The behaviour was changed in that commit:

f0171ae#diff-34de6b51f4b6138effd8cc9e454b4c822fd6463903ffced00027a242fa9df47bL91c

  • Docusaurus configuration

    plugins: [
    [
    '@graphql-markdown/docusaurus',
    {
    schema: "./schema.graphql",
    rootPath: "./docs",
    baseURL: "/",
    homepage: "./docs/hello.md",
    linkRoot: "/",
    tmpDir: "./cache",
    skipDocDirective: "@docignore",
    docOptions: {
    frontMatter: {
    pagination_next: null, // disable page navigation next
    pagination_prev: null, // disable page navigation previous
    hide_table_of_contents: true, // disable page table of content
    },
    index: true, // enable generated index pages, same as CLI flag --index
    },
    printTypeOptions: {
    hierarchy: "entity", // disable type API grouping, same as CLI flag --hierarchy entity
    parentTypePrefix: false,
    relatedTypeSection: false,
    typeBadges: false
    },
    loaders: {
    GraphQLFileLoader: "@graphql-tools/graphql-file-loader" // local file schema
    }
    },
    ],
    ],

Expected behavior

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions