vitepress.ts
5 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.
5
symbols
5
functions
8
parameters
5
returns
Reference
fnfromVitePressConfig(config: VitePressConfig, overrides: OxContentOptions = {}): OxContentOptionsCreates ox-content plugin options from an existing VitePress config.
Creates ox-content plugin options from an existing VitePress config.
Signature
export function fromVitePressConfig(config: VitePressConfig, overrides: OxContentOptions = {}): OxContentOptions
Parameters
-
configVitePressConfig -
overridesOxContentOptionsoptional · default: {}
Returns
fngenerateVitePressMigrationConfig(config: VitePressConfig, overrides: OxContentOptions = {}, options: GenerateVitePressMigrationConfigOptions = {}): stringGenerates a TypeScript module exporting migrated ox-content options. This is us…
Generates a TypeScript module exporting migrated ox-content options.
This is used by the migration CLI so users can inspect and edit the resulting object instead of keeping a runtime dependency on their VitePress config.
Signature
export function generateVitePressMigrationConfig(config: VitePressConfig, overrides: OxContentOptions = {}, options: GenerateVitePressMigrationConfigOptions = {}): string
Parameters
-
configVitePressConfig -
overridesOxContentOptionsoptional · default: {}
-
optionsGenerateVitePressMigrationConfigOptionsoptional · default: {}
Returns
string
fnnormalizeVitePressFrontmatter(frontmatter: Record<string, unknown>): Record<string, unknown>Normalizes VitePress-specific frontmatter into ox-content's entry-page shape.
Normalizes VitePress-specific frontmatter into ox-content's entry-page shape.
Signature
export function normalizeVitePressFrontmatter(frontmatter: Record<string, unknown>): Record<string, unknown>
Parameters
-
frontmatterRecord<string, unknown>
Returns
Record<string, unknown>