fumadocs
Fumadocs formatter for GraphQL documentation output.
Produces MDX compatible with Next.js Fumadocs using its native Callout component for admonitions and Material UI Chip for badges.
mdxDeclarationβ
const mdxDeclaration: MDXString;
Defined in: fumadocs/index.ts:33
MDX import statement prepended to every generated file to register Fumadocs and MUI components.
mdxExtensionβ
const mdxExtension: ".mdx";
Defined in: fumadocs/index.ts:30
File extension used for generated pages.
createMDXFormatter()β
function createMDXFormatter(_meta?): Formatter;
Defined in: fumadocs/index.ts:89
Creates a Fumadocs formatter.
Parametersβ
_meta?β
Maybe<MetaInfo>
Unused metadata parameter
Returnsβ
Formatter
A complete Formatter implementation for Fumadocs MDX output
formatMDXAdmonition()β
function formatMDXAdmonition(admonition, _meta): MDXString;
Defined in: fumadocs/index.ts:56
Formats an admonition using the Fumadocs <Callout> component.
Maps warning type to warn; all other types use info.
Parametersβ
admonitionβ
AdmonitionType
Admonition data with text, title, and type
_metaβ
Maybe<MetaInfo>
Unused metadata parameter
Returnsβ
MDXString
Formatted Fumadocs Callout component string
formatMDXBadge()β
function formatMDXBadge(badge): MDXString;
Defined in: fumadocs/index.ts:44
Formats a badge using the Material UI <Chip> component.
Maps DEPRECATED classname to warning color; all others use info.
Parametersβ
badgeβ
Badge
Badge data containing text and optional classname
Returnsβ
MDXString
Formatted MUI Chip component string
formatMDXLink()β
function formatMDXLink(link): TypeLink;
Defined in: fumadocs/index.ts:69
Appends .mdx to internal link URLs.
Parametersβ
linkβ
TypeLink
Link data with URL and text
Returnsβ
TypeLink
Link with .mdx extension appended to the URL