API Documentation
Generated by Ox Content
Modules
docs
functionextractDocs - Extracts JSDoc documentation from source files in specified directories.
This fu...
functionfindFiles - Recursively finds all source files matching include/exclude patterns.functionextractFromContent - Extracts documentation entries from file content.functionextractFunctionSignature - Extracts the complete function signature for display.
Captures the full function...
functionextractTypesFromSignature - Extracts parameter and return types from a TypeScript function signature.
Parses...
functionsplitParameters - Splits function parameters while respecting nested angle brackets (generics).
Ha...
functionparseJsdocBlock - Parses a JSDoc block and the following declaration.
Only matches if the declarat...
functiongenerateMarkdown - Generates Markdown documentation from extracted docs.interfaceSymbolLocation - Symbol location info for cross-file linking.functionconvertSymbolLinks - Converts symbol links [SymbolName] to markdown links.
Processes description text...
functionbuildSymbolMap - Builds a map of all symbols to their file locations.functionwriteDocs - Writes generated documentation to the output directory.functiongenerateSourceLink - Generates a GitHub source link for a file and optional line number.
environment
functioncreateMarkdownEnvironment - Creates the Markdown processing environment configuration.
This environment is u...
interfaceEnvironmentTransformContext - Environment-specific module transformer.
This is called during the transform pha...
functioncreateTransformOptions - Creates environment-aware transform options.functionprerender - Runs pre-render for SSG.
This function is called during build to pre-render all ...
functioncreateEnvironmentPlugins - Environment plugin factory.
Creates plugins specific to the Markdown environment...
highlight
functiongetHighlighter - Get or create the Shiki highlighter.functionrehypeShikiHighlight - Rehype plugin for syntax highlighting with Shiki.functiongetTextContent - Extract text content from a hast node.functionhighlightCode - Apply syntax highlighting to HTML using Shiki.
index
functionoxContent - Creates the Ox Content Vite plugin.functionresolveOptions - Resolves plugin options with defaults.functiongenerateVirtualModule - Generates virtual module content.
jsx-runtime
functionescapeHtml - Escapes HTML special characters to prevent XSS.functiontoHtmlAttr - Converts a camelCase attribute name to kebab-case for HTML.
Special handling for...
functionrenderAttr - Renders an attribute value to a string.typeJSXElementType - JSX element type - either a string (intrinsic) or a function component.typeJSXChild - Valid JSX child types.interfaceJSXNode - JSX node - the result of JSX expressions.interfaceJSXProps - Props with children.functionrenderChildren - Renders children to HTML string.functionjsx - Creates a JSX element.
This is the core function called by the JSX transform.
functionjsxs - Creates a JSX element with static children.
Called by the JSX transform for elem...
functionFragment - Fragment component - renders children without a wrapper element.functionrenderToString - Renders a JSX node to an HTML string.functionraw - Creates raw HTML without escaping.
Use with caution - only for trusted content.
functionwhen - Conditionally renders content.functioneach - Maps over an array and renders each item.
jsx.d
typeElement - The type returned by JSX expressions.interfaceIntrinsicElements - Props for intrinsic elements (HTML tags).interfaceHTMLAttributes - Base HTML attributes shared by all elements.typeIntrinsicElementType - Type for intrinsic element constructors.typeIntrinsicElementProps - Props for a specific intrinsic element.
mermaid
functiongetTextContent - Extract text content from a hast node.functionrehypeMermaid - Rehype plugin to transform mermaid code blocks.
Replaces `mermaid blocks with ...
functiontransformMermaid - Transform mermaid code blocks in HTML.
Creates wrapper elements that can be rend...
nav-generator
functiongenerateNavMetadata - Generates sidebar navigation metadata from extracted documentation.
Takes an arr...
functiongetDocDisplayName - Gets the human-readable display name for a documentation file.
Transforms file p...
functiongetDocFileName - Gets the file name (without extension) for use in navigation paths.
This handles...
functiongenerateNavCode - Generates TypeScript code for navigation metadata export.
Creates a complete, se...
page-context
interfaceBasePageProps - Base page props available for all pages.typePageProps - Extended page props with custom frontmatter.interfaceSiteConfig - Site-wide configuration available in context.interfaceNavGroup - Navigation group.interfaceNavItem - Navigation item.interfaceRenderContext - Complete render context.functionsetRenderContext - Sets the current render context.
Called internally during page rendering.
functionclearRenderContext - Clears the current render context.
Called internally after page rendering.
functionusePageProps - Gets the current page props.functionuseSiteConfig - Gets the site configuration.functionuseRenderContext - Gets the full render context.functionuseNav - Gets the navigation groups.functionuseIsActive - Checks if the given path is the current page.interfaceFrontmatterSchema - Schema for frontmatter type generation.functioninferType - Infers TypeScript types from frontmatter values.functiongenerateFrontmatterTypes - Generates TypeScript interface from frontmatter samples.
search
functionresolveSearchOptions - Resolves search options with defaults.functioncollectMarkdownFiles - Collects all Markdown files from a directory.functionbuildSearchIndex - Builds the search index from Markdown files.functionwriteSearchIndex - Writes the search index to a file.functiongenerateSearchModule - Client-side search module code.
This is injected into the bundle as a virtual mo...
ssg
interfaceSsgNavItem - Navigation item for SSG.interfaceSsgEntryPageConfig - Entry page configuration for SSG (passed to Rust).interfaceSsgPageData - Page data for SSG.functionresolveSsgOptions - Resolves SSG options with defaults.functionrenderTemplate - Simple mustache-like template rendering.functionextractTitle - Extracts title from content or frontmatter.function_generateNavHtml - Generates navigation HTML from nav groups.function_generateTocHtml - Generates TOC HTML from toc entries.functiongenerateBareHtmlPage - Generates bare HTML page (no navigation, no styles).functiongenerateHtmlPage - Generates HTML page with navigation using Rust NAPI bindings.functiongetOutputPath - Converts a markdown file path to its corresponding HTML output path.functiongetUrlPath - Converts a markdown file path to a relative URL path.functiongetHref - Converts a markdown file path to an href.functiongetOgImagePath - Gets the OG image output path for a given markdown file.functiongetOgImageUrl - Gets the OG image URL for use in meta tags.
If siteUrl is provided, returns an a...
functiongetDisplayTitle - Gets display title from file path.functionformatTitle - Formats a file/dir name as a title.functioncollectMarkdownFiles - Collects all markdown files from the source directory.interfaceNavGroup - Navigation group for hierarchical navigation.functionbuildNavItems - Builds navigation items from markdown files, grouped by directory.functionbuildSsg - Builds all markdown files to static HTML.
theme-renderer
typeThemeComponent - Theme component type.interfaceThemeProps - Props passed to the theme component.interfacePageData - Page data for rendering.interfaceThemeRenderOptions - Theme render options.functionrenderPage - Renders a page using the theme component.functionrenderAllPages - Renders all pages and generates type definitions.functiongenerateTypes - Generates TypeScript type definitions from page frontmatter.functionDefaultTheme - Default theme component.
A minimal theme that renders page content with basic st...
functioncreateTheme - Creates a theme with layout switching support.
theme
interfaceThemeColors - Theme color configuration.interfaceThemeLayout - Theme layout configuration.interfaceThemeFonts - Theme font configuration.interfaceThemeHeader - Theme header configuration.interfaceThemeFooter - Theme footer configuration.interfaceSocialLinks - Social links configuration.interfaceThemeSlots - Theme slots for injecting custom HTML.interfaceThemeConfig - Complete theme configuration.interfaceResolvedThemeConfig - Resolved theme configuration (after merging with defaults).functiondeepMerge - Deep merge two objects.functiondefineTheme - Defines a theme configuration with type checking.functionmergeThemes - Merges multiple theme configurations.
Later themes override earlier ones.
functionresolveTheme - Resolves a theme configuration by merging with its extends chain and defaults.functionthemeToNapi - Converts resolved theme to the format expected by Rust NAPI.interfaceNapiThemeColors - NAPI-compatible theme colors type.interfaceNapiThemeFonts - NAPI-compatible theme fonts type.interfaceNapiThemeLayout - NAPI-compatible theme layout type.interfaceNapiThemeHeader - NAPI-compatible theme header type.interfaceNapiThemeFooter - NAPI-compatible theme footer type.interfaceNapiSocialLinks - NAPI-compatible social links type.interfaceNapiThemeSlots - NAPI-compatible theme slots type.interfaceNapiThemeConfig - NAPI-compatible theme configuration type.
transform
interfaceNapiBindings - NAPI bindings for Rust-based Markdown processing.
Provides access to compiled Ru...
interfaceOgImageData - OG image data for generating social media preview images.interfaceOgImageConfig - OG image configuration.interfaceJsTransformOptions - Options for Rust-based Markdown transformation.
Controls which Markdown extensio...
functionloadNapiBindings - Lazily loads and caches NAPI bindings.
This function uses lazy loading to defer ...
interfaceSsgTransformOptions - SSG-specific transform options.functionparseFrontmatter - Parses YAML frontmatter from Markdown content.
Uses proper YAML parser for full ...
functionbuildTocTree - Builds nested TOC tree from flat list.functiongenerateModuleCode - Generates the JavaScript module code.functionextractImports - Extracts imports from Markdown content.
Supports importing components for intera...
functiongenerateOgImageSvg - Generates an OG image SVG using the Rust-based generator.
This function uses the...
types
interfaceHeroAction - Hero section action button.interfaceHeroImage - Hero section image configuration.interfaceHeroConfig - Hero section configuration for entry page.interfaceFeatureConfig - Feature card for entry page.interfaceEntryPageConfig - Entry page frontmatter configuration.interfaceSsgOptions - SSG (Static Site Generation) options.interfaceResolvedSsgOptions - Resolved SSG options.interfaceOxContentOptions - Plugin options.interfaceResolvedOptions - Resolved options with all defaults applied.interfaceOgImageOptions - OG image generation options.interfaceMarkdownTransformer - Custom AST transformer.interfaceTransformContext - Transform context passed to transformers.interfaceMarkdownNode - Markdown AST node (simplified for TypeScript).interfaceTransformResult - Transform result.interfaceTocEntry - Table of contents entry.interfaceDocsOptions - Options for source documentation generation.interfaceResolvedDocsOptions - Resolved docs options with all defaults applied.interfaceDocEntry - A single documentation entry extracted from source.interfaceParamDoc - Parameter documentation.interfaceReturnDoc - Return type documentation.interfaceExtractedDocs - Extracted documentation for a single file.interfaceNavItem - Navigation item for sidebar navigation.interfaceSearchOptions - Options for full-text search.interfaceResolvedSearchOptions - Resolved search options.interfaceSearchDocument - Search document structure.interfaceSearchResult - Search result structure.