config.ts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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: 'es/guide/' },
  16. { text: 'Getting Started', link: 'es/guide/getting-started' },
  17. { text: 'Your first Scene', link: 'es/guide/your-first-scene' },
  18. ],
  19. },
  20. {
  21. text: 'API',
  22. items: [
  23. { text: 'Renderer', link: 'es/api/renderer' },
  24. {
  25. text: 'Instances, arguments and props',
  26. link: 'es/api/instances-arguments-and-props',
  27. },
  28. {
  29. text: 'Composables',
  30. link: 'es/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. { text: 'Load Text', link: '/examples/text-3d' },
  42. ],
  43. },
  44. {
  45. text: 'Advanced',
  46. items: [
  47. { text: 'Extending', link: 'es/advanced/extending' },
  48. {
  49. text: 'Caveats',
  50. link: 'es/advanced/caveats',
  51. },
  52. ],
  53. },
  54. {
  55. text: 'Cientos ⚡️',
  56. collapsible: true,
  57. items: [
  58. { text: 'Introduction', link: 'es/cientos/' },
  59. {
  60. text: 'Abstractions',
  61. items: [{ text: 'Text3D', link: 'es/cientos/abstractions/text-3d' }],
  62. },
  63. {
  64. text: 'Controls',
  65. items: [{ text: 'OrbitControls', link: '/cientos/controls/orbit-controls' }],
  66. },
  67. {
  68. text: 'Loaders',
  69. items: [
  70. { text: 'useGLTF', link: '/cientos/loaders/use-gltf' },
  71. { text: 'GLTFModel', link: '/cientos/loaders/gltf-model' },
  72. ],
  73. },
  74. {
  75. text: 'Misc',
  76. items: [{ text: 'useTweakpane', link: '/cientos/misc/use-tweakpane' }],
  77. },
  78. ],
  79. },
  80. ],
  81. nav: [
  82. { text: 'Guide', link: 'es/guide/' },
  83. { text: 'API', link: 'es/api/' },
  84. { text: 'Config', link: 'es/config/' },
  85. {
  86. text: 'Ecosystem',
  87. activeMatch: `^/ecosystem/`,
  88. items: [
  89. {
  90. text: `Core v${version}`,
  91. items: [
  92. {
  93. text: 'Release Notes ',
  94. link: `https://github.com/Tresjs/tres/releases/tag/%40tresjs%2Fcore%40${version}`,
  95. },
  96. ],
  97. },
  98. {
  99. text: `Cientos v${cientosVersion}`,
  100. items: [
  101. {
  102. text: 'Release Notes ',
  103. link: `https://github.com/Tresjs/tres/releases/tag/%40tresjs%2Fcientos%40${cientosVersion}`,
  104. },
  105. ],
  106. },
  107. ],
  108. },
  109. ],
  110. socialLinks: [
  111. { icon: 'github', link: 'https://github.com/tresjs/tres' },
  112. { icon: 'twitter', link: 'https://twitter.com/alvarosabu' },
  113. ],
  114. },
  115. })