Skip to content

Interface: OxContentApiDocsOptions

User-facing options for generating API reference markdown and VitePress integration.

Signature

ts
export interface OxContentApiDocsOptions

Properties

NameTypeDescription
basePathstringBase route used when generating links between API docs pages.
clean (optional)booleanWhether generated output should be cleaned before writing. Default: undefined
docsJson (optional)boolean | stringWhether to write docs JSON, or the output path to write it to. Default: undefined
entryPointsEntryPointInput[]Source entry points whose exported declarations become API docs pages.
escapeHeadingAngleBrackets (optional)booleanEscape < and > in markdown heading lines to avoid HTML parsing in VitePress. Default: false
extraction (optional)OxContentExtractionOptionsControls which declarations and metadata are extracted from entry points. Default: {}
githubUrl (optional)stringGitHub repository URL used to generate source links for declarations. Default: undefined
markdown (optional)OxContentMarkdownOptionsControls markdown page generation, grouping, sorting, and rendering details. Default: {}
nav (optional)VitePressNavOptionsControls generated VitePress sidebar integration and optional nav artifacts. Default: { enabled: true, insert: 'append', virtualModule: false }
outDirstring | URLDirectory where generated markdown and optional artifacts are written.
root (optional)string | URLProject root used to resolve relative paths. Default: process.cwd()
tsconfig (optional)string | URLTypeScript configuration file used for declaration extraction. Default: undefined
write (optional)booleanWhether generated files and artifacts are written to disk. Default: true