Michael Yang
2025-04-10 541f0f39c2c32d79dc6b2f0e77e37e8fa60e1f9d
docs: init docs
2个文件已删除
1个文件已修改
1 文件已重命名
1 文件已复制
262 ■■■■■ 已修改文件
docs/.vitepress/config.mts 128 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/api-examples.md 49 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/markdown-examples.md 85 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
docs/zh/development/info/what-is-aiflowy.md 补丁 | 查看 | 原始文档 | blame | 历史
docs/zh/product/info/what-is-aiflowy.md 补丁 | 查看 | 原始文档 | blame | 历史
docs/.vitepress/config.mts
@@ -7,23 +7,127 @@
  themeConfig: {
    // https://vitepress.dev/reference/default-theme-config
    nav: [
      { text: 'Home', link: '/' },
      { text: 'Examples', link: '/markdown-examples' }
      { text: '开发文档', link: '/zh/development/info/what-is-aiflowy' },
      { text: '产品文档', link: '/zh/product/info/what-is-aiflowy' },
      { text: '更新记录', link: 'https://gitee.com/aiflowy/aiflowy/commits/main' },
    ],
    sidebar: [
      {
        text: 'Examples',
        items: [
          { text: 'Markdown Examples', link: '/markdown-examples' },
          { text: 'Runtime API Examples', link: '/api-examples' },
          { text: 'AIFlowy 是什么', link: '/info/what-is-aiflowy' },
        ]
      }
    ],
    sidebar:{
      '/zh/development/': { base: '/zh/development/', items: sidebarDevelopment() },
      '/zh/product/': { base: '/zh/product/', items: sidebarProduct() }
    },
    socialLinks: [
      { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
    ]
  }
})
function sidebarDevelopment(): DefaultTheme.SidebarItem[] {
  return [
    {
      text: '快速开始',
      collapsed: false,
      items: [
        { text: '快速开始', link: '/zh/product/info/what-is-aiflowy' },
        { text: '目录结构', link: 'getting-started' },
        { text: '配置文件', link: 'routing' },
        { text: '项目部署', link: 'deploy' },
        { text: '常见问题', link: 'deploy' }
      ]
    },
    {
      text: '前端相关',
      collapsed: false,
      items: [
        { text: '前端目录结构', link: 'markdown' },
        { text: '路由管理', link: 'asset-handling' },
        { text: '状态管理', link: 'frontmatter' },
        { text: 'Hooks', link: 'using-vue' },
        { text: '组件使用', link: 'i18n' },
        { text: '国际化', link: 'i18n' }
      ]
    },
    {
      text: '后端相关',
      collapsed: false,
      items: [
        { text: 'Controller', link: 'custom-theme' },
        { text: '权限管理', link: 'extending-default-theme' },
        { text: '验证码', link: 'data-loading' },
        { text: '数据字典', link: 'ssr-compat' },
        { text: '文件管理', link: 'cms' },
        { text: '其他', link: 'cms' }
      ]
    },
    {
      text: 'AI 相关',
      collapsed: false,
      items: [
        { text: '大语言模型', link: 'mpa-mode' },
        { text: 'Bot 应用', link: 'sitemap-generation' },
        { text: '插件', link: 'sitemap-generation' },
        { text: '知识库', link: 'sitemap-generation' },
        { text: 'Ollama', link: 'sitemap-generation' },
      ]
    },
  ]
}
function sidebarProduct(): DefaultTheme.SidebarItem[] {
  return [
    {
      text: '简介',
      collapsed: false,
      items: [
        { text: '什么是 AIFlowy?', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
      ]
    },
    {
      text: 'Bot 应用',
      collapsed: false,
      items: [
        { text: '什么是 Bot', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
      ]
    },
    {
      text: '插件',
      collapsed: false,
      items: [
        { text: '什么是 插件?', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
        { text: '自定义插件', link: 'routing' },
      ]
    },
    {
      text: '知识库',
      collapsed: false,
      items: [
        { text: '什么是知识库', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
      ]
    },
    {
      text: '工作流',
      collapsed: false,
      items: [
        { text: '什么是工作流', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
      ]
    },
    {
      text: '模型管理',
      collapsed: false,
      items: [
        { text: '什么是 AIFlowy?', link: '/zh/product/info/what-is-aiflowy' },
        { text: '快速开始', link: 'getting-started' },
        { text: '路由', link: 'routing' },
        { text: '部署', link: 'deploy' }
      ]
    },
  ]
}
docs/api-examples.md
File was deleted
docs/markdown-examples.md
File was deleted
docs/zh/development/info/what-is-aiflowy.md
copy from docs/info/what-is-aiflowy.md copy to docs/zh/development/info/what-is-aiflowy.md
docs/zh/product/info/what-is-aiflowy.md