export type HelpMenuItem = {
  key: string;
  title: string;
  path: string; // e.g. /help/guide/overview or /help/knowledge/intro#快速上手
  doc?: string; // relative to src/help/docs
  children?: HelpMenuItem[];
};

export const helpMenu: HelpMenuItem[] = [
  {
    key: 'overview',
    title: '概述',
    path: '/help/guide/overview',
    doc: 'guide/overview.md',
  },
  {
    key: 'qa',
    title: '应用广场',
    path: '/help/questionAnswer/intro',
    doc: 'questionAnswer/intro.md',
    children: [
      {
        key: 'create-rag',
        title: '创建应用',
        path: '/help/questionAnswer/intro#创建应用',
      },
      {
        key: 'edit-rag',
        title: '编辑修改应用',
        path: '/help/questionAnswer/intro#编辑修改应用',
      },
      {
        key: 'parma-rag',
        title: '关键配置',
        path: '/help/questionAnswer/intro#关键配置',
      },
      {
        key: 'common-rag',
        title: '常见问题',
        path: '/help/questionAnswer/intro#常见问题',
      },
    ],
  },
  {
    key: 'knowledge',
    title: '知识库',
    path: '/help/knowledge/intro',
    doc: 'knowledge/intro.md',
    children: [
      {
        key: 'knowledge-quick',
        title: '快速上手',
        path: '/help/knowledge/intro#快速上手',
      },
      {
        key: 'knowledge-create',
        title: '创建知识库',
        path: '/help/knowledge/intro#创建知识库',
      },
      {
        key: 'knowledge-upload',
        title: '上传文档',
        path: '/help/knowledge/intro#上传文档',
      },
      {
        key: 'chunk-edit',
        title: '切片精修',
        path: '/help/knowledge/intro#切片精修',
      },
      {
        key: 'chunk-image',
        title: '切片精修-图片处理方法',
        path: '/help/knowledge/intro#切片精修-图片处理方法',
      },
      {
        key: 'practice',
        title: '最佳实践',
        path: '/help/knowledge/intro#最佳实践',
      },
      {
        key: 'practice',
        title: '常见问题',
        path: '/help/knowledge/intro#常见问题',
      },
    ],
  },
  // {
  //   key: 'dataExport',
  //   title: '数据导出',
  //   path: '/help/dataExport/intro',
  //   doc: 'dataExport/intro.md',
  // },
  // {
  //   key: 'audit',
  //   title: '应用审核',
  //   path: '/help/audit/intro',
  //   doc: 'audit/intro.md',
  // },
];
