menu.ts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. export type HelpMenuItem = {
  2. key: string;
  3. title: string;
  4. path: string; // e.g. /help/guide/overview or /help/knowledge/intro#快速上手
  5. doc?: string; // relative to src/help/docs
  6. children?: HelpMenuItem[];
  7. };
  8. export const helpMenu: HelpMenuItem[] = [
  9. {
  10. key: 'overview',
  11. title: '概述',
  12. path: '/help/guide/overview',
  13. doc: 'guide/overview.md',
  14. },
  15. {
  16. key: 'qa',
  17. title: '应用广场',
  18. path: '/help/questionAnswer/intro',
  19. doc: 'questionAnswer/intro.md',
  20. children: [
  21. {
  22. key: 'create-rag',
  23. title: '创建应用',
  24. path: '/help/questionAnswer/intro#创建应用',
  25. },
  26. {
  27. key: 'edit-rag',
  28. title: '编辑修改应用',
  29. path: '/help/questionAnswer/intro#编辑修改应用',
  30. },
  31. {
  32. key: 'parma-rag',
  33. title: '关键配置',
  34. path: '/help/questionAnswer/intro#关键配置',
  35. },
  36. {
  37. key: 'common-rag',
  38. title: '常见问题',
  39. path: '/help/questionAnswer/intro#常见问题',
  40. },
  41. ],
  42. },
  43. {
  44. key: 'knowledge',
  45. title: '知识库',
  46. path: '/help/knowledge/intro',
  47. doc: 'knowledge/intro.md',
  48. children: [
  49. {
  50. key: 'knowledge-quick',
  51. title: '快速上手',
  52. path: '/help/knowledge/intro#快速上手',
  53. },
  54. {
  55. key: 'knowledge-create',
  56. title: '创建知识库',
  57. path: '/help/knowledge/intro#创建知识库',
  58. },
  59. {
  60. key: 'knowledge-upload',
  61. title: '上传文档',
  62. path: '/help/knowledge/intro#上传文档',
  63. },
  64. {
  65. key: 'chunk-edit',
  66. title: '切片精修',
  67. path: '/help/knowledge/intro#切片精修',
  68. },
  69. {
  70. key: 'chunk-image',
  71. title: '切片精修-图片处理方法',
  72. path: '/help/knowledge/intro#切片精修-图片处理方法',
  73. },
  74. {
  75. key: 'practice',
  76. title: '最佳实践',
  77. path: '/help/knowledge/intro#最佳实践',
  78. },
  79. {
  80. key: 'practice',
  81. title: '常见问题',
  82. path: '/help/knowledge/intro#常见问题',
  83. },
  84. ],
  85. },
  86. // {
  87. // key: 'dataExport',
  88. // title: '数据导出',
  89. // path: '/help/dataExport/intro',
  90. // doc: 'dataExport/intro.md',
  91. // },
  92. // {
  93. // key: 'audit',
  94. // title: '应用审核',
  95. // path: '/help/audit/intro',
  96. // doc: 'audit/intro.md',
  97. // },
  98. ];