import type { SidebarsConfig } from '@docusaurus/plugin-content-docs';

const sidebars: SidebarsConfig = {
  mainSidebar: [
    'intro',
    {
      type: 'category',
      label: 'User Guide',
      items: [
        'user-guide/first-steps',
        'user-guide/servers-and-channels',
        'user-guide/text-and-direct-messages',
        'user-guide/voice-channels',
        'user-guide/plugins',
        'user-guide/settings',
        'using-toju'
      ]
    },
    {
      type: 'category',
      label: 'Developer Guide',
      items: [
        'developer/contributing',
        'developer/docusaurus-site',
        'developer/dom-structure',
        'developer/rest-api',
        'developer/llm-plugin-builder-guide',
        'desktop-and-local-api'
      ]
    },
    {
      type: 'category',
      label: 'Plugin Development',
      items: [
        'plugin-development/create-a-plugin',
        'plugin-development/manifest',
        'plugin-development/capabilities',
        'plugin-development/api-reference',
        {
          type: 'category',
          label: 'Plugin API Examples',
          items: [
            'plugin-development/api/context-and-logging',
            'plugin-development/api/profile',
            'plugin-development/api/users-and-roles',
            'plugin-development/api/server',
            'plugin-development/api/channels',
            'plugin-development/api/messages-and-typing',
            'plugin-development/api/events',
            'plugin-development/api/message-bus',
            'plugin-development/api/p2p-and-media',
            'plugin-development/api/storage',
            'plugin-development/api/ui',
            'plugin-development/api/commands'
          ]
        },
        'plugin-development/examples'
      ]
    }
  ]
};

export default sidebars;
