en.ts 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. import type { DefaultTheme, LocaleSpecificConfig } from 'vitepress'
  2. export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
  3. themeConfig: {
  4. editLink: {
  5. pattern: 'https://github.com/tresjs/tres/edit/main/docs/:path',
  6. text: 'Suggest changes to this page',
  7. },
  8. sidebar: [
  9. {
  10. text: 'Guide',
  11. items: [
  12. // This shows `/guide/index.md` page.
  13. { text: 'Introduction', link: '/guide/' },
  14. { text: 'Getting Started', link: '/guide/getting-started' },
  15. { text: 'Your first Scene', link: '/guide/your-first-scene' },
  16. { text: 'Nuxt', link: '/guide/nuxt' },
  17. { text: 'Troubleshooting', link: '/guide/troubleshooting' },
  18. { text: 'Migrate from v1', link: '/guide/migration-guide' },
  19. ],
  20. },
  21. {
  22. text: 'API',
  23. items: [
  24. { text: 'TresCanvas', link: '/api/tres-canvas' },
  25. {
  26. text: 'Instances, arguments and props',
  27. link: '/api/instances-arguments-and-props',
  28. },
  29. {
  30. text: 'Composables',
  31. link: '/api/composables',
  32. },
  33. {
  34. text: 'Events',
  35. link: '/api/events',
  36. },
  37. ],
  38. },
  39. {
  40. text: 'Advanced',
  41. items: [
  42. { text: 'Extending', link: '/advanced/extending' },
  43. { text: 'Primitives', link: '/advanced/primitive' },
  44. { text: 'Scaling Performance 🚀', link: '/advanced/performance' },
  45. {
  46. text: 'Caveats',
  47. link: '/advanced/caveats',
  48. },
  49. ],
  50. },
  51. {
  52. text: 'Debug',
  53. items: [
  54. { text: 'Devtools', link: '/debug/devtools' },
  55. ],
  56. },
  57. {
  58. text: 'Cookbook 🍳🧑‍🍳',
  59. link: '/cookbook/',
  60. items: [
  61. { text: 'Orbit Controls', link: '/cookbook/orbit-controls' },
  62. { text: 'Basic Animations', link: '/cookbook/basic-animations' },
  63. { text: 'Advanced Animations', link: '/cookbook/advanced-animations' },
  64. { text: 'Groups', link: '/cookbook/groups' },
  65. { text: 'Load Textures', link: '/cookbook/load-textures' },
  66. { text: 'Load Models', link: '/cookbook/load-models' },
  67. { text: 'Load Text', link: '/cookbook/text-3d' },
  68. { text: 'Lights & Shadows', link: '/cookbook/lights-shadows' },
  69. { text: 'Shaders', link: '/cookbook/shaders' },
  70. ],
  71. },
  72. {
  73. text: 'Directives',
  74. collapsed: true,
  75. items: [
  76. { text: 'v-log', link: '/directives/v-log' },
  77. { text: 'v-light-helper', link: '/directives/v-light-helper' },
  78. { text: 'v-distance-to', link: '/directives/v-distance-to' },
  79. ],
  80. },
  81. {
  82. text: 'Ecosystem',
  83. items: [
  84. {
  85. text: 'Cientos 💛',
  86. link: 'https://cientos.tresjs.org/',
  87. },
  88. {
  89. text: 'Nuxt module',
  90. link: 'https://github.com/Tresjs/nuxt',
  91. },
  92. {
  93. text: 'TresLeches 🍰',
  94. link: 'https://tresleches.tresjs.org/',
  95. },
  96. {
  97. text: 'Post-processing (Soon)',
  98. },
  99. ],
  100. },
  101. ],
  102. nav: [
  103. { text: 'Guide', link: '/guide/' },
  104. { text: 'API', link: '/api/tres-canvas' },
  105. /* { text: 'API', link: '/api/' },
  106. { text: 'Config', link: '/config/' }, */
  107. {
  108. text: 'Resources',
  109. items: [
  110. { text: 'Team', link: '/team' },
  111. { text: 'Releases', link: 'https://github.com/Tresjs/tres/releases' },
  112. {
  113. text: 'Playground',
  114. link: 'https://play.tresjs.org/',
  115. },
  116. {
  117. text: 'Github',
  118. link: 'https://github.com/Tresjs/tres/',
  119. },
  120. {
  121. text: 'Issues',
  122. link: 'https://github.com/Tresjs/tres/issues',
  123. },
  124. {
  125. text: 'Ecosystem',
  126. items: [
  127. {
  128. text: 'Cientos 💛',
  129. link: 'https://cientos.tresjs.org/',
  130. },
  131. {
  132. text: 'Nuxt module',
  133. link: 'https://github.com/Tresjs/nuxt',
  134. },
  135. {
  136. text: 'TresLeches 🍰',
  137. link: 'https://tresleches.tresjs.org/',
  138. },
  139. ],
  140. },
  141. ],
  142. },
  143. ],
  144. },
  145. }