import { defineConfig } from 'vitepress'

export default defineConfig({
  title: 'Certifai',
  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: '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 Chat', link: '/features/ai-chat' },
          { text: 'Code Knowledge Graph', link: '/features/graph' },
          { text: 'MCP Integration', link: '/features/mcp-server' },
        ],
      },
      {
        text: 'Reference',
        items: [
          { text: 'Glossary', link: '/reference/glossary' },
          { text: 'Tools & Scanners', link: '/reference/tools' },
        ],
      },
    ],
    socialLinks: [
      { icon: 'github', link: 'https://gitea.meghsakha.com/sharang/compliance-scanner-agent' },
    ],
    footer: {
      message: 'Certifai Documentation',
    },
  },
})
