1
0

config.ts 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import { defineConfig } from 'vitepress'
  2. import { version } from '../../packages/tres/package.json'
  3. export default defineConfig({
  4. title: 'TresJS',
  5. description: 'Declarative ThreeJS using Vue Components',
  6. head: [['link', { rel: 'icon', type: 'image/svg', href: '/favicon.svg' }]],
  7. themeConfig: {
  8. logo: '/logo.svg',
  9. sidebar: [
  10. {
  11. text: 'Guide',
  12. items: [
  13. // This shows `/guide/index.md` page.
  14. { text: 'Introduction', link: '/guide/' },
  15. { text: 'Getting Started', link: '/guide/getting-started' },
  16. { text: 'Your first Scene', link: '/guide/your-first-scene' },
  17. ],
  18. },
  19. {
  20. text: 'API',
  21. items: [
  22. { text: 'Renderer', link: '/api/renderer' },
  23. {
  24. text: 'Instances, arguments and props',
  25. link: '/api/instances-arguments-and-props',
  26. },
  27. ],
  28. },
  29. /*{
  30. text: 'Examples',
  31. }, */
  32. {
  33. text: 'Advanced',
  34. items: [{ text: 'Extending', link: '/advanced/extending' }],
  35. },
  36. ],
  37. nav: [
  38. { text: 'Guide', link: '/guide/' },
  39. { text: 'API', link: '/api/' },
  40. { text: 'Config', link: '/config/' },
  41. {
  42. text: `v${version}`,
  43. items: [
  44. {
  45. text: 'Release Notes ',
  46. link: 'https://github.com/Tresjs/tres/releases',
  47. },
  48. ],
  49. },
  50. ],
  51. socialLinks: [
  52. { icon: 'github', link: 'https://github.com/tresjs/tres' },
  53. { icon: 'twitter', link: 'https://twitter.com/alvarosabu' },
  54. ],
  55. },
  56. })