config.mts 751 B

12345678910111213141516171819202122232425262728293031
  1. import { defineConfig } from 'vitepress';
  2. // https://vitepress.dev/reference/site-config
  3. export default defineConfig({
  4. description: 'A VitePress Site',
  5. themeConfig: {
  6. // https://vitepress.dev/reference/default-theme-config
  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: 'My Awesome Project',
  25. vite: {
  26. server: { port: 6173 },
  27. },
  28. });