config.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { defaultTheme } from '@vuepress/theme-default'
  2. import { defineUserConfig } from 'vuepress'
  3. import { searchPlugin } from '@vuepress/plugin-search'
  4. import { viteBundler } from '@vuepress/bundler-vite'
  5. export default defineUserConfig({
  6. base: '/',
  7. lang: 'zh-CN',
  8. title: 'Tappo',
  9. description: '智能浏览器自动化工具',
  10. bundler: viteBundler(),
  11. theme: defaultTheme({
  12. logo: '/images/logo.png',
  13. navbar: [
  14. { text: '指南', link: '/guide/' },
  15. { text: '工作流', link: '/workflow/' },
  16. { text: 'API', link: '/api/' },
  17. ],
  18. sidebar: {
  19. '/guide/': [
  20. { text: '快速开始', link: '/guide/' },
  21. { text: '安装引擎', link: '/guide/install' },
  22. { text: '创建工作流', link: '/guide/create-workflow' },
  23. { text: '运行工作流', link: '/guide/run-workflow' },
  24. ],
  25. '/workflow/': [
  26. { text: '工作流概述', link: '/workflow/' },
  27. { text: '浏览器指令', link: '/workflow/browser' },
  28. { text: '页面操作', link: '/workflow/page' },
  29. { text: '数据提取', link: '/workflow/data' },
  30. { text: '流程控制', link: '/workflow/control' },
  31. ],
  32. '/api/': [
  33. { text: 'API 概述', link: '/api/' },
  34. { text: 'Webhook 触发', link: '/api/webhook' },
  35. ],
  36. }
  37. }),
  38. plugins: [
  39. searchPlugin({ locales: { '/': { placeholder: '搜索' } } })
  40. ]
  41. })