config.ts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. import { defineConfig } from 'vitepress'
  2. import { version } from '../../packages/tres/package.json'
  3. import { version as cientosVersion } from '../../packages/cientos/package.json'
  4. export default defineConfig({
  5. title: 'TresJS',
  6. description: 'Declarative ThreeJS using Vue Components',
  7. head: [['link', { rel: 'icon', type: 'image/svg', href: '/favicon.svg' }]],
  8. themeConfig: {
  9. logo: '/logo.svg',
  10. sidebar: [
  11. {
  12. text: 'Guide',
  13. items: [
  14. // This shows `/guide/index.md` page.
  15. { text: 'Introduction', link: '/guide/' },
  16. { text: 'Getting Started', link: '/guide/getting-started' },
  17. { text: 'Your first Scene', link: '/guide/your-first-scene' },
  18. ],
  19. },
  20. {
  21. text: 'API',
  22. items: [
  23. { text: 'Renderer', link: '/api/renderer' },
  24. {
  25. text: 'Instances, arguments and props',
  26. link: '/api/instances-arguments-and-props',
  27. },
  28. {
  29. text: 'Composables',
  30. link: '/api/composables',
  31. },
  32. ],
  33. },
  34. {
  35. text: 'Examples',
  36. items: [
  37. { text: 'Orbit Controls', link: '/examples/orbit-controls' },
  38. { text: 'Basic Animations', link: '/examples/basic-animations' },
  39. { text: 'Load Textures', link: '/examples/load-textures' },
  40. { text: 'Load Models', link: '/examples/load-models' },
  41. ],
  42. },
  43. {
  44. text: 'Advanced',
  45. items: [
  46. { text: 'Extending', link: '/advanced/extending' },
  47. {
  48. text: 'Caveats',
  49. link: '/advanced/caveats',
  50. },
  51. ],
  52. },
  53. ],
  54. nav: [
  55. { text: 'Guide', link: '/guide/' },
  56. { text: 'API', link: '/api/' },
  57. { text: 'Config', link: '/config/' },
  58. {
  59. text: 'Ecosystem',
  60. activeMatch: `^/ecosystem/`,
  61. items: [
  62. {
  63. text: `Core v${version}`,
  64. items: [
  65. {
  66. text: 'Release Notes ',
  67. link: `https://github.com/Tresjs/tres/releases/tag/%40tresjs%2Fcore%40${version}`,
  68. },
  69. ],
  70. },
  71. {
  72. text: `Cientos v${cientosVersion}`,
  73. items: [
  74. {
  75. text: 'Release Notes ',
  76. link: `https://github.com/Tresjs/tres/releases/tag/%40tresjs%2Fcientos%40${cientosVersion}`,
  77. },
  78. ],
  79. },
  80. ],
  81. },
  82. ],
  83. socialLinks: [
  84. { icon: 'github', link: 'https://github.com/tresjs/tres' },
  85. { icon: 'twitter', link: 'https://twitter.com/alvarosabu' },
  86. ],
  87. },
  88. })