import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
  title: "Page Assist",
  description: "Page Assist is an open-source Chrome Extension that provides a Sidebar and Web UI for your Local AI model. It allows you to interact with your model from any webpage.",
  lastUpdated: true,
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    search: {
      provider: "local",
    },
    editLink: {
      pattern: "https://github.com/n4ze3m/page-assist/edit/main/docs/:path",
      text: "Edit this page on GitHub"
    },
    nav: [
      { text: 'Home', link: '/' },
    ],

    sidebar: [
      {
        text: 'Guide',
        items: [
          { text: 'Welcome to Page Assist', link: '/' },
          {
            text: "Browser Support",
            link: "/browser-support"
          },
          {
            text: "Settings",
            link: "/settings"
          },
          {
            text: "Keyboard Shortcuts",
            link: "/shortcuts"
          }
        ],
      },
      {
        text: "Sidebar",
        items: [
          {
            text: "Sidebar Settings",
            link: "/sidebar"
          },
          {
            text: "Sidebar Copilot",
            link: "/sidebar/copilot"
          },
          {
            text: "Chat With Website",
            link: "/sidebar/chat-with-website"
          },
          {
            text: "Sidebar Vision (🧪)",
            link: "/sidebar/vision"
          }
        ],
      },
      {
        text: "Features",
        items: [
          {
            text: "Internet Search",
            link: "/features/internet-search"
          },
          {
            text: "Prompts",
            link: "/features/prompts"
          },
          {
            text: "Knowledge Base",
            link: "/features/knowledge-base"
          },
          {
            text: "Page Share",
            link: "/features/page-share"
          },
          {
            text: "MCP",
            link: "/features/mcp"
          },
          {
            text: "Page Action",
            link: "/features/page-action"
          },
          {
            text: "Ollama",
            link: "/features/ollama"
          },
          {
            text: "Other",
            link: "/features/other"
          }
        ]
      },
      {
        text: "Providers",
        collapsed: true,
        items: [
          {
            text: "Ollama",
            link: "/providers/ollama"
          },
          {
            text: "LM Studio",
            link: "/providers/lmstudio"
          },
          {
            text: "OpenAI Compatible API",
            link: "/providers/openai"
          }
        ]
      },
      {
        text: "Troubleshooting",
        items: [
          {
            text: "Ollama Connection Issue",
            link: "/connection-issue"
          },
          {
            text: "Extensions Causing Issue with Other Websites",
            link: "/extensions-causing-issue-other-websites"
          }
        ]
      }],

    socialLinks: [
      { icon: 'github', link: 'https://github.com/n4ze3m/page-assist' },
      { icon: 'x', link: 'https://x.com/page_assist' },
      { icon: 'discord', link: 'https://discord.gg/bu54382uBd' },
    ],
    footer: {
      message: "MIT Licensed Open Source Project",
      copyright: "Copyright © 2025 Muhammed Nazeem  & Page Assist Contributors",
    },
  },
  ignoreDeadLinks: true
})
