1
0

config.mts 944 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. import { defineConfigWithTheme } from 'vitepress';
  2. export default defineConfigWithTheme({
  3. description: 'Vben Admin Pro Doc',
  4. lang: 'zh-CN',
  5. srcDir: 'src',
  6. themeConfig: {
  7. nav: [
  8. { link: '/', text: 'Home' },
  9. { link: '/markdown-examples', text: 'Examples' },
  10. ],
  11. sidebar: [
  12. {
  13. text: 'Examples',
  14. items: [
  15. { link: '/markdown-examples', text: 'Markdown Examples' },
  16. { link: '/api-examples', text: 'Runtime API Examples' },
  17. ],
  18. },
  19. ],
  20. socialLinks: [
  21. { icon: 'github', link: 'https://github.com/vuejs/vitepress' },
  22. ],
  23. },
  24. title: 'Vben Admin Pro',
  25. vite: {
  26. build: {
  27. chunkSizeWarningLimit: Infinity,
  28. minify: 'terser',
  29. },
  30. json: {
  31. stringify: true,
  32. },
  33. server: {
  34. fs: {
  35. allow: ['../..'],
  36. },
  37. host: true,
  38. port: 6173,
  39. },
  40. ssr: {
  41. external: ['@vue/repl'],
  42. },
  43. },
  44. });