defineConfig
ThedefineConfig function provides type-safe configuration for your Doom documentation site. It accepts an Rspress configuration object and returns it with full TypeScript support.
Import
Usage
Create adoom.config.ts file in your project root:
Type Definition
The configuration object conforming to Rspress’s Config type. See Rspress Configuration for all available options.
Returns the same configuration object with type inference support
Configuration Schema
TheConfig type includes all Rspress configuration options. Common properties:
Root directory for documentation source files
Site title displayed in browser tab and header
Site description for SEO meta tags
Path to favicon file
Logo image path or separate logos for light/dark themes
Theme-specific configuration including sidebar, navbar, and footer
Multi-language configuration for internationalization
Array of Rspress plugins to extend functionality
Markdown processing configuration
Example with Multiple Locales
See Also
- Types Reference - TypeScript type definitions
- Configuration Concepts - Configuration guide
- Rspress Config API - Complete Rspress API reference