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:31
Type Declarationβ
formatMDXBulletβ
formatMDXBullet: typeof formatMDXBullet;
formatMDXLinkβ
formatMDXLink: typeof formatMDXLink;
formatMDXPermalinkβ
formatMDXPermalink: typeof formatMDXPermalink;
afterRenderTypeEntitiesHookβ
const afterRenderTypeEntitiesHook: RenderTypeEntitiesHook;
Defined in: mkdocs/index.ts:135
Lifecycle hook that rewrites generated absolute GraphQL-Markdown links
into page-relative .md links compatible with MkDocs validation.
Paramβ
event
Hook payload containing the current file path and renderer output context
mdxExtensionβ
const mdxExtension: ".md";
Defined in: mkdocs/index.ts:128
File extension used for generated pages β MkDocs uses standard Markdown (.md) files.
createMDXFormatter()β
function createMDXFormatter(_meta?): Formatter;
Defined in: mkdocs/index.ts:148
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:70
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:59
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:84
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:97
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:110
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:123
Formats a "specified by" link as a standard Markdown link.
Parametersβ
urlβ
string
URL to the specification
Returnsβ
MDXString
Formatted specification link string