mkdocs
MkDocs formatter for GraphQL documentation output.
Produces Markdown compatible with MkDocs admonitions, HTML details blocks, and visible page headings.
__defaultβ
const __default: object;
Defined in: mkdocs/index.ts:34
Type Declarationβ
formatMDXBulletβ
formatMDXBullet: (text) => MDXString;
Formats a bullet point separator using a <span> with a gqlmd-mdx-bullet CSS class.
Parametersβ
text?β
string = ""
Optional text to append after the bullet
Returnsβ
MDXString
Formatted bullet string
formatMDXLinkβ
formatMDXLink: (link) => TypeLink;
Formats a type link β returns the link unchanged (identity passthrough).
Parametersβ
linkβ
TypeLink
The TypeLink object to format
Returnsβ
TypeLink
The unmodified TypeLink object
afterRenderTypeEntitiesHookβ
const afterRenderTypeEntitiesHook: RenderTypeEntitiesHook;
Defined in: mkdocs/index.ts:154
Lifecycle hook that rewrites generated absolute GraphQL-Markdown links
into page-relative .md links compatible with MkDocs validation.
Paramβ
Hook payload containing the current file path and renderer output context
mdxExtensionβ
const mdxExtension: ".md";
Defined in: mkdocs/index.ts:147
File extension used for generated pages β MkDocs uses standard Markdown (.md) files.
createMDXFormatter()β
function createMDXFormatter(_meta?): Formatter;
Defined in: mkdocs/index.ts:183
Creates an MkDocs Material formatter.
Parametersβ
_meta?β
Maybe<MetaInfo>
Unused metadata parameter
Returnsβ
Formatter
A complete Formatter implementation for MkDocs Material output
formatMDXAdmonition()β
function formatMDXAdmonition(admonition, _meta): MDXString;
Defined in: mkdocs/index.ts:88
Formats an admonition using MkDocs Material !!! block syntax.
Content is indented by 4 spaces as required by the spec.
Parametersβ
admonitionβ
AdmonitionType
Admonition data with text, title, and type
_metaβ
Maybe<MetaInfo>
Unused metadata parameter
Returnsβ
MDXString
Formatted admonition string
formatMDXBadge()β
function formatMDXBadge(badge): MDXString;
Defined in: mkdocs/index.ts:77
Formats a badge as an inline HTML mark element.
Parametersβ
badgeβ
Badge
Badge data containing text and optional classname
Returnsβ
MDXString
Formatted badge string
formatMDXDetails()β
function formatMDXDetails(option): MDXString;
Defined in: mkdocs/index.ts:102
Formats a collapsible block as an HTML <details> element.
Parametersβ
optionβ
CollapsibleOption
Configuration for open/close label text
Returnsβ
MDXString
Formatted collapsible string
formatMDXFrontmatter()β
function formatMDXFrontmatter(_props, formatted): MDXString;
Defined in: mkdocs/index.ts:115
Formats page title as a visible H1 heading.
Parametersβ
_propsβ
Maybe<FrontMatterOptions>
Front matter options (unused)
formattedβ
Maybe<string[]>
Pre-formatted front matter lines
Returnsβ
MDXString
Visible heading string, or empty string if no title is available
formatMDXNameEntity()β
function formatMDXNameEntity(name, parentType?): MDXString;
Defined in: mkdocs/index.ts:129
Formats a named entity as a backtick code span.
Parametersβ
nameβ
string
Entity name
parentType?β
Maybe<string>
Optional parent type name for qualified references
Returnsβ
MDXString
Formatted entity reference string
formatMDXSpecifiedByLink()β
function formatMDXSpecifiedByLink(url): MDXString;
Defined in: mkdocs/index.ts:142
Formats a "specified by" link as a standard Markdown link.
Parametersβ
urlβ
string
URL to the specification
Returnsβ
MDXString
Formatted specification link string