Implementation:Promptfoo Promptfoo Docusaurus Config
| Knowledge Sources | |
|---|---|
| Domains | Documentation, Configuration |
| Last Updated | 2026-02-14 07:45 GMT |
Overview
Concrete configuration file that defines the Docusaurus documentation site settings including navigation, theme, plugins, SEO, and deployment parameters.
Description
The Docusaurus_Config (docusaurus.config.ts) is the main configuration for the promptfoo documentation site at promptfoo.dev. It defines the site title, URL, theme configuration (light/dark code themes), navbar structure, footer links, Algolia search integration, plugin registrations (blog, ideal-image, OpenAPI docs), redirect rules, and global head tags for fonts and analytics.
Usage
This file is read automatically by the Docusaurus build system. Modify it when changing site-wide documentation settings, navigation structure, or adding new plugins.
Code Reference
Source Location
- Repository: Promptfoo_Promptfoo
- File: site/docusaurus.config.ts
- Lines: 1-609
Signature
const config: Config = {
title: 'Promptfoo',
tagline: 'Ship secure AI agents and LLM applications',
url: 'https://www.promptfoo.dev',
baseUrl: '/',
// ... full configuration
};
export default config;
Import
// Not typically imported directly; loaded by Docusaurus framework
import type { Config } from '@docusaurus/types';
I/O Contract
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| (none) | — | — | Configuration read by Docusaurus at build time |
Outputs
| Name | Type | Description |
|---|---|---|
| config | Config | Docusaurus configuration object defining site behavior |
Usage Examples
# Build the documentation site
cd site
npm run build
# Start development server
npm run start