import { defineConfig } from 'vitepress'
import { withMermaid } from 'vitepress-plugin-mermaid'

export default withMermaid(defineConfig({
  title: 'Prüfwerk',
  description: 'AI-powered security compliance scanning platform',
  ignoreDeadLinks: [
    /localhost/,
  ],
  themeConfig: {
    nav: [
      { text: 'Guide', link: '/guide/getting-started' },
      { text: 'Features', link: '/features/overview' },
      { text: 'Reference', link: '/reference/glossary' },
    ],
    sidebar: [
      {
        text: 'Guide',
        items: [
          { text: 'Getting Started', link: '/guide/getting-started' },
          { text: 'Adding Repositories', link: '/guide/repositories' },
          { text: 'Running Scans', link: '/guide/scanning' },
          { text: 'PLC / SPS (CODESYS)', link: '/guide/plc' },
          { text: 'Demo Targets', link: '/guide/demo-targets' },
          { text: 'Understanding Findings', link: '/guide/findings' },
          { text: 'SBOM & Licenses', link: '/guide/sbom' },
          { text: 'Issues & Tracking', link: '/guide/issues' },
          { text: 'Webhooks & PR Reviews', link: '/guide/webhooks' },
        ],
      },
      {
        text: 'Features',
        items: [
          { text: 'Dashboard Overview', link: '/features/overview' },
          { text: 'DAST Scanning', link: '/features/dast' },
          { text: 'AI Pentest', link: '/features/pentest' },
          { text: 'Pentest Architecture', link: '/features/pentest-architecture' },
          { text: 'AI Chat', link: '/features/ai-chat' },
          { text: 'Code Knowledge Graph', link: '/features/graph' },
          { text: 'Compliance Control Mapping', link: '/features/control-mapping' },
          { text: 'MCP Integration', link: '/features/mcp-server' },
        ],
      },
      {
        text: 'Reference',
        items: [
          { text: 'Glossary', link: '/reference/glossary' },
          { text: 'Tools & Scanners', link: '/reference/tools' },
          { text: 'PLC Runtime Landscape', link: '/reference/plc-runtimes' },
        ],
      },
    ],
    socialLinks: [
      { icon: 'github', link: 'https://gitea.meghsakha.com/sharang/compliance-scanner-agent' },
    ],
    footer: {
      message: 'Prüfwerk Documentation',
    },
  },
  mermaid: {},
}))
