1
0

config.ts 3.6 KB

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