Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Promptfoo Promptfoo Docusaurus Config

From Leeroopedia
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

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

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment