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.
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...
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.interfaceSsgPageData - Page data for SSG.functionresolveSsgOptions - Resolves SSG options with defaults.functionrenderTemplate - Simple mustache-like template rendering.functionextractTitle - Extracts title from content or frontmatter.functiongenerateNavHtml - Generates navigation HTML from nav groups.functiongenerateTocHtml - 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.
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.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
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.