config.js 777 B

123456789101112131415161718192021222324252627282930
  1. import { defineConfig } from 'vitepress'
  2. // https://vitepress.dev/reference/site-config
  3. export default defineConfig({<% if (srcDir) { %>
  4. srcDir: <%= srcDir %>,
  5. <% } %>
  6. title: <%= title %>,
  7. description: <%= description %><% if (defaultTheme) { %>,
  8. themeConfig: {
  9. // https://vitepress.dev/reference/default-theme-config
  10. nav: [
  11. { text: 'Home', link: '/' },
  12. { text: 'Examples', link: '/markdown-examples' }
  13. ],
  14. sidebar: [
  15. {
  16. text: 'Examples',
  17. items: [
  18. { text: 'Markdown Examples', link: '/markdown-examples' },
  19. { text: 'Runtime API Examples', link: '/api-examples' }
  20. ]
  21. }
  22. ],
  23. socialLinks: [
  24. { icon: 'github', link: 'https://github.com/vuejs/vitepress' }
  25. ]
  26. }<% } %>
  27. })