import { defineConfig } from 'vitepress'

export default defineConfig({
  title: 'Agentic Engineering the Hard Way',
  description: 'Build every component from scratch. 65 lessons, 13 labs, 20 skill kits. No black boxes.',
  lang: 'en-US',
  lastUpdated: true,
  cleanUrls: true,
  sitemap: {
    hostname: 'https://git.fdsa.agency',
  },

  head: [
    ['link', { rel: 'icon', href: '/favicon.svg' }],
    ['meta', { name: 'theme-color', content: '#0f0f0f' }],
    ['meta', { property: 'og:title', content: 'Agentic Engineering the Hard Way' }],
    ['meta', { property: 'og:description', content: '65 lessons, 13 labs, 20 skill kits. Build production-grade AI agent systems from scratch. No black boxes.' }],
    ['meta', { property: 'og:image', content: '/og-image.svg' }],
    ['meta', { name: 'twitter:card', content: 'summary_large_image' }],
    ['link', { rel: 'preconnect', href: 'https://fonts.googleapis.com' }],
    ['link', { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }],
    ['link', { href: 'https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,800&family=DM+Mono:wght@400;500&display=swap', rel: 'stylesheet' }],
    ['link', { href: 'https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0,0', rel: 'stylesheet' }],
    // Analytics — uncomment and configure when ready
    // ['script', { src: 'https://analytics.example.com/script.js', 'data-domain': 'git.fdsa.agency', defer: '' }],
  ],

  appearance: true,

  themeConfig: {
    logo: false,
    siteTitle: 'FDSA',

    nav: [
      { text: 'Course', link: '/modules/m1-foundations', activeMatch: '/modules/' },
      { text: 'Labs', link: '/labs/l1-first-agent', activeMatch: '/labs/' },
      { text: 'Skills', link: '/skills' },
      { text: 'Blog', link: '/blog', activeMatch: '/blog/' },
      { text: 'More', items: [
        { text: 'Curriculum', link: '/modules/curriculum' },
        { text: 'Debate', link: '/modules/debate' },
        { text: 'FAQ', link: '/troubleshooting' },
        { text: 'Certificate', link: '/certificate' },
        { text: 'Buy', link: '/buy' },
      ]},
    ],

    sidebar: {
      '/modules/': [
        {
          text: 'Module 1: Foundations',
          link: '/modules/m1-foundations',
          collapsed: true,
          items: [
            { text: '1.1 What Makes an Agent?', link: '/modules/m1-foundations#lesson-11-what-makes-an-agent' },
            { text: '1.2 Harness vs The Model', link: '/modules/m1-foundations#lesson-12-the-harness-vs-the-model' },
            { text: '1.3 Decision Framework', link: '/modules/m1-foundations#lesson-13-decision-framework' },
            { text: '1.4 Repository IS the Spec', link: '/modules/m1-foundations#lesson-13a-the-repository-is-the-spec' },
            { text: '1.5 The Agent Loop', link: '/modules/m1-foundations#lesson-14-the-agent-loop' },
            { text: '1.6 Tool Calling', link: '/modules/m1-foundations#lesson-15-tool-calling-deep-dive' },
            { text: '1.7 Vibe Coding vs Engineering', link: '/modules/m1-foundations#lesson-16-vibe-coding-vs-agentic-engineering' },
            { text: '1.8 Do You Trust Your Agents?', link: '/modules/m1-foundations#lesson-17-do-you-trust-your-agents' },
            { text: 'Lab 1.9: First Agent', link: '/labs/l1-first-agent' },
          ]
        },
        {
          text: 'Module 2: Architecture',
          link: '/modules/m2-architecture',
          collapsed: true,
          items: [
            { text: '2.1-2.3 Core Architecture', link: '/modules/m2-architecture#lesson-21-the-four-pillars' },
            { text: '2.4-2.6 Skills & Workspace', link: '/modules/m2-architecture#lesson-23b-skills-system-deep-dive' },
            { text: '2.7-2.9 Advanced Patterns', link: '/modules/m2-architecture#lesson-24-context-window-management' },
            { text: 'Labs 2.10-2.11', link: '/labs/l2-multi-tool' },
          ]
        },
        {
          text: 'Module 3: Safety & Security',
          link: '/modules/m3-safety',
          collapsed: true,
          items: [
            { text: '3.1-3.2 Bash & Ladder', link: '/modules/m3-safety#lesson-31-why-bash-is-the-single-point-of-failure' },
            { text: '3.3-3.5 Hooks & Control', link: '/modules/m3-safety#lesson-33-the-l3-marque-break' },
            { text: '3.6-3.7 Verifier & Stacking', link: '/modules/m3-safety#lesson-36-the-verifier-pattern' },
            { text: 'Labs 3.8-3.9', link: '/labs/l3-whitelist-hook' },
          ]
        },
        {
          text: 'Module 4: Orchestration',
          link: '/modules/m4-orchestration',
          collapsed: true,
          items: [
            { text: '4.1-4.4 Patterns', link: '/modules/m4-orchestration#lesson-41-why-one-agent-is-not-enough' },
            { text: '4.5-4.9 Teams & Comms', link: '/modules/m4-orchestration#lesson-43-depth-2-delegation' },
            { text: '4.10-4.11 Case Studies', link: '/modules/m4-orchestration#lesson-410-the-ceo-board-system' },
            { text: 'Labs 4.12-4.13', link: '/labs/l4-agent-chain' },
          ]
        },
        {
          text: 'Module 5: Production',
          link: '/modules/m5-production',
          collapsed: true,
          items: [
            { text: '5.1-5.4 CI/CD & Stack', link: '/modules/m5-production#lesson-51-what-production-means-for-agents' },
            { text: '5.5-5.8 Deploy & Monitor', link: '/modules/m5-production#lesson-53-shadow-deployments' },
            { text: 'Labs 5.9-5.10', link: '/labs/l5-observability' },
          ]
        },
        {
          text: 'Module 6: Economics',
          link: '/modules/m6-economics',
          collapsed: true,
          items: [
            { text: '6.0-6.2 Pricing', link: '/modules/m6-economics#lesson-60-the-compute-advantage-equation' },
            { text: '6.3-6.5 Eval Metrics', link: '/modules/m6-economics#lesson-63-cost-per-session-math' },
            { text: '6.6-6.7 Testing', link: '/modules/m6-economics#lesson-66-ab-testing-agents' },
            { text: 'Labs 6.8-6.9', link: '/labs/l6-eval-harness' },
          ]
        },
        {
          text: 'Module 7: Advanced',
          link: '/modules/m7-advanced',
          collapsed: true,
          items: [
            { text: '7.1-7.3 Autoresearch', link: '/modules/m7-advanced#lesson-71-autoresearch' },
            { text: '7.4-7.6 Meta & Beyond', link: '/modules/m7-advanced#lesson-73-meta-agents' },
            { text: 'Labs 7.7-7.8', link: '/labs/l7-autoresearch' },
          ]
        },
        {
          text: 'Module 8: Capstone',
          link: '/modules/m8-capstone',
          collapsed: true,
          items: [
            { text: 'Project Options', link: '/modules/m8-capstone#project-options' },
            { text: 'Phases', link: '/modules/m8-capstone#capstone-phases' },
            { text: 'Rubric', link: '/modules/m8-capstone#grading-rubric' },
          ]
        },
      ],
      '/labs/': [
        { text: 'All Labs', link: '/labs/l1-first-agent' },
        { text: 'L1: First Agent', link: '/labs/l1-first-agent' },
        { text: 'L2a: Multi-Tool Agent', link: '/labs/l2-multi-tool' },
        { text: 'L2b: Context-Aware Agent', link: '/labs/l2-context' },
        { text: 'L3a: Whitelist Hook', link: '/labs/l3-whitelist-hook' },
        { text: 'L3b: Verifier Agent', link: '/labs/l3-verifier' },
        { text: 'L4a: Agent Chain', link: '/labs/l4-agent-chain' },
        { text: 'L4b: Multi-Team Config', link: '/labs/l4-multi-team' },
        { text: 'L5a: Observability', link: '/labs/l5-observability' },
        { text: 'L5b: CI/CD Pipeline', link: '/labs/l5-cicd' },
        { text: 'L6a: Eval Harness', link: '/labs/l6-eval-harness' },
        { text: 'L6b: Cost Optimization', link: '/labs/l6-cost-optimization' },
        { text: 'L7a: Autoresearch', link: '/labs/l7-autoresearch' },
        { text: 'L7b: Meta-Agent', link: '/labs/l7-meta-agent' },
      ],
    },

    socialLinks: [
      { icon: 'github', link: 'http://185.239.209.216:3001/artale/agentic-engineering-course' },
    ],

    footer: {
      message: 'FDSA Agency — Agentic Engineering Course. Part of the fdsa.ai orchestration platform.',
      copyright: 'Copyright 2026',
    },

    search: {
      provider: 'local',
    },

    // i18n / multi-language
    locales: {
      root: {
        label: 'English',
        lang: 'en-US',
        title: 'Agentic Engineering the Hard Way',
        description: 'Build every component from scratch. 65 lessons, 13 labs, 20 skill kits. No black boxes, no magic SDKs.',
      },
      es: {
        label: 'Español',
        lang: 'es-ES',
        title: 'Agentic Engineering the Hard Way',
        description: 'Construye cada componente desde cero. 65 lecciones, 13 laboratorios, 20 kits de habilidades.',
        link: '/es/',
      },
      pt: {
        label: 'Português',
        lang: 'pt-BR',
        title: 'Agentic Engineering the Hard Way',
        description: 'Construa cada componente do zero. 65 lições, 13 laboratórios, 20 kits de habilidades.',
        link: '/pt/',
      },
      it: {
        label: 'Italiano',
        lang: 'it-IT',
        title: 'Agentic Engineering the Hard Way',
        description: 'Costruisci ogni componente da zero. 65 lezioni, 13 laboratori, 20 kit di abilità.',
        link: '/it/',
      },
      ar: {
        label: 'العربية',
        lang: 'ar-SA',
        title: 'هندسة الوكلاء بالطريقة الصعبة',
        description: 'بناء كل مكون من الصفر. 65 درسًا، 13 مختبرًا، 20 مجموعة مهارات.',
        link: '/ar/',
        dir: 'rtl',
      },
    },
  },
})
