ArdoConfig
On this page
Main Ardo configuration.
In JSX-first architecture, only build-time options are needed here. Runtime UI configuration (header, sidebar, footer) is done in JSX.
import type { ArdoConfig } from "ardo/config"
type ArdoConfig = {
/** Site title (used for default meta tags) */
title: string;
/** Site description (used for default meta tags) */
description?: string;
/** Separator between page title and site title (default: " | ") */
titleSeparator?: string;
/** Base URL path */
base?: string;
/** Absolute site URL used for canonical and social metadata URLs */
siteUrl?: string;
/** Content source directory (default: 'content') */
srcDir?: string;
/** Build output base directory, containing client/ and server/ (default: 'build') */
outDir?: string;
/** Site language (default: 'en') */
lang?: string;
/** Additional head tags (deprecated: export `meta` from the route or `app/root.tsx` instead) */
head?: HeadConfig[];
/** Markdown processing options */
markdown?: MarkdownConfig;
/** Generated sidebar options */
sidebar?: SidebarConfig;
/** Site-level social metadata defaults */
metadata?: MetadataConfig;
/** Simple brand customization for the default theme and header logo. */
brand?: ArdoBrandConfig;
/** Sitemap and robots.txt generation */
seo?: SeoConfig;
/** Build-time internal link checking */
linkCheck?: LinkCheckConfig;
/** Static redirect generation */
redirects?: RedirectConfig[];
/** Build-time validation policy for content metadata. */
validation?: ContentValidationConfig;
/**
* Major-version documentation routing.
*
* When enabled, Ardo treats `base` as the deployment root and appends the current
* version path to build canonical URLs, sitemap entries, and runtime links.
*/
versioning?: DocumentationVersioningConfig | false;
/**
* Strict static localization. Put each localized route under
* `app/routes/<locale>/`; Ardo rejects missing or unlocalized pages rather
* than serving an implicit fallback.
*/
i18n?: false | I18nConfig;
/** Static OpenAPI 3.0/3.1 reference generation. */
openapi?: OpenApiConfig;
/** Custom Vite configuration */
vite?: Record<string, unknown>;
/**
* Project metadata (auto-detected from package.json if not provided).
* Available at runtime via `config.project` from `virtual:ardo/config`.
*/
project?: ProjectMeta;
/** Build timestamp (ISO string, set automatically by the Vite plugin) */
buildTime?: string;
/** Git commit hash (set automatically by the Vite plugin) */
buildHash?: string;
};
Properties
| Name | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Site title (used for default meta tags) |
description | string | No | Site description (used for default meta tags) |
titleSeparator | string | No | Separator between page title and site title (default: " | ") |
base | string | No | Base URL path |
siteUrl | string | No | Absolute site URL used for canonical and social metadata URLs |
srcDir | string | No | Content source directory (default: 'content') |
outDir | string | No | Build output base directory, containing client/ and server/ (default: 'build') |
lang | string | No | Site language (default: 'en') |
head | HeadConfig[] | No | Additional head tags (deprecated: export meta from the route or app/root.tsx instead) |
markdown | MarkdownConfig | No | Markdown processing options |
sidebar | SidebarConfig | No | Generated sidebar options |
metadata | MetadataConfig | No | Site-level social metadata defaults |
brand | ArdoBrandConfig | No | Simple brand customization for the default theme and header logo. |
seo | SeoConfig | No | Sitemap and robots.txt generation |
linkCheck | LinkCheckConfig | No | Build-time internal link checking |
redirects | RedirectConfig[] | No | Static redirect generation |
validation | ContentValidationConfig | No | Build-time validation policy for content metadata. |
versioning | DocumentationVersioningConfig | false | No | Major-version documentation routing. When enabled, Ardo treats base as the deployment root and appends the currentversion path to build canonical URLs, sitemap entries, and runtime links. |
i18n | false | I18nConfig | No | Strict static localization. Put each localized route underapp/routes/<locale>/; Ardo rejects missing or unlocalized pages ratherthan serving an implicit fallback. |
openapi | OpenApiConfig | No | Static OpenAPI 3.0/3.1 reference generation. |
vite | Record<string, unknown> | No | Custom Vite configuration |
project | ProjectMeta | No | Project metadata (auto-detected from package.json if not provided). Available at runtime via config.project from virtual:ardo/config. |
buildTime | string | No | Build timestamp (ISO string, set automatically by the Vite plugin) |
buildHash | string | No | Git commit hash (set automatically by the Vite plugin) |