Randysheng 2 ani în urmă
părinte
comite
d6d8b73cac
2 a modificat fișierele cu 43 adăugiri și 43 ștergeri
  1. 41 41
      docs/.vitepress/config/en.ts
  2. 2 2
      docs/index.md

+ 41 - 41
docs/.vitepress/config/en.ts

@@ -7,48 +7,48 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
         text: 'Guide',
         items: [
           // This shows `/guide/index.md` page.
-          { text: 'Introduction', link: '/guide/' },
-          { text: 'Getting Started', link: '/guide/getting-started' },
-          { text: 'Your first Scene', link: '/guide/your-first-scene' },
+          { text: 'Introduction', link: '/en/guide/' },
+          { text: 'Getting Started', link: '/en/guide/getting-started' },
+          { text: 'Your first Scene', link: '/en/guide/your-first-scene' },
         ],
       },
       {
         text: 'API',
         items: [
-          { text: 'Renderer', link: '/api/renderer' },
+          { text: 'Renderer', link: '/en/api/renderer' },
           {
             text: 'Instances, arguments and props',
-            link: '/api/instances-arguments-and-props',
+            link: '/en/api/instances-arguments-and-props',
           },
           {
             text: 'Composables',
-            link: '/api/composables',
+            link: '/en/api/composables',
           },
           {
             text: 'Events',
-            link: '/api/events',
+            link: '/en/api/events',
           },
         ],
       },
       {
         text: 'Examples',
         items: [
-          { text: 'Orbit Controls', link: '/examples/orbit-controls' },
-          { text: 'Basic Animations', link: '/examples/basic-animations' },
-          { text: 'Groups', link: '/examples/groups' },
-          { text: 'Load Textures', link: '/examples/load-textures' },
-          { text: 'Load Models', link: '/examples/load-models' },
-          { text: 'Load Text', link: '/examples/text-3d' },
+          { text: 'Orbit Controls', link: '/en/examples/orbit-controls' },
+          { text: 'Basic Animations', link: '/en/examples/basic-animations' },
+          { text: 'Groups', link: '/en/examples/groups' },
+          { text: 'Load Textures', link: '/en/examples/load-textures' },
+          { text: 'Load Models', link: '/en/examples/load-models' },
+          { text: 'Load Text', link: '/en/examples/text-3d' },
         ],
       },
       {
         text: 'Advanced',
 
         items: [
-          { text: 'Extending', link: '/advanced/extending' },
+          { text: 'Extending', link: '/en/advanced/extending' },
           {
             text: 'Caveats',
-            link: '/advanced/caveats',
+            link: '/en/advanced/caveats',
           },
         ],
       },
@@ -56,60 +56,60 @@ export const enConfig: LocaleSpecificConfig<DefaultTheme.Config> = {
         text: 'Cientos 💛',
         collapsible: true,
         items: [
-          { text: 'Introduction', link: '/cientos/' },
+          { text: 'Introduction', link: '/en/cientos/' },
           {
             text: 'Abstractions',
             items: [
-              { text: 'Text3D', link: '/cientos/abstractions/text-3d' },
-              { text: 'useAnimations', link: '/cientos/abstractions/use-animations' },
-              { text: 'Environment', link: '/cientos/abstractions/environment' },
-              { text: 'useEnvironment', link: '/cientos/abstractions/use-environment' },
+              { text: 'Text3D', link: '/en/cientos/abstractions/text-3d' },
+              { text: 'useAnimations', link: '/en/cientos/abstractions/use-animations' },
+              { text: 'Environment', link: '/en/cientos/abstractions/environment' },
+              { text: 'useEnvironment', link: '/en/cientos/abstractions/use-environment' },
             ],
           },
           {
             text: 'Controls',
             items: [
-              { text: 'OrbitControls', link: '/cientos/controls/orbit-controls' },
-              { text: 'TransformControls', link: '/cientos/controls/transform-controls' },
+              { text: 'OrbitControls', link: '/en/cientos/controls/orbit-controls' },
+              { text: 'TransformControls', link: '/en/cientos/controls/transform-controls' },
             ],
           },
           {
             text: 'Loaders',
             items: [
-              { text: 'useGLTF', link: '/cientos/loaders/use-gltf' },
-              { text: 'GLTFModel', link: '/cientos/loaders/gltf-model' },
-              { text: 'useFBX', link: '/cientos/loaders/use-fbx' },
-              { text: 'FBXModel', link: '/cientos/loaders/fbx-model' },
+              { text: 'useGLTF', link: '/en/cientos/loaders/use-gltf' },
+              { text: 'GLTFModel', link: '/en/cientos/loaders/gltf-model' },
+              { text: 'useFBX', link: '/en/cientos/loaders/use-fbx' },
+              { text: 'FBXModel', link: '/en/cientos/loaders/fbx-model' },
             ],
           },
           {
             text: 'Shapes',
             items: [
-              { text: 'Box', link: '/cientos/shapes/box' },
-              { text: 'Circle', link: '/cientos/shapes/circle' },
-              { text: 'Cone', link: '/cientos/shapes/cone' },
-              { text: 'Dodecahedron', link: '/cientos/shapes/dodecahedron' },
-              { text: 'Icosahedron', link: '/cientos/shapes/icosahedron' },
-              { text: 'Octahedron', link: '/cientos/shapes/octahedron' },
-              { text: 'Plane', link: '/cientos/shapes/plane' },
-              { text: 'Ring', link: '/cientos/shapes/ring' },
-              { text: 'Sphere', link: '/cientos/shapes/sphere' },
-              { text: 'Tetrahedron', link: '/cientos/shapes/tetrahedron' },
-              { text: 'Torus', link: '/cientos/shapes/torus' },
+              { text: 'Box', link: '/en/cientos/shapes/box' },
+              { text: 'Circle', link: '/en/cientos/shapes/circle' },
+              { text: 'Cone', link: '/en/cientos/shapes/cone' },
+              { text: 'Dodecahedron', link: '/en/cientos/shapes/dodecahedron' },
+              { text: 'Icosahedron', link: '/en/cientos/shapes/icosahedron' },
+              { text: 'Octahedron', link: '/en/cientos/shapes/octahedron' },
+              { text: 'Plane', link: '/en/cientos/shapes/plane' },
+              { text: 'Ring', link: '/en/cientos/shapes/ring' },
+              { text: 'Sphere', link: '/en/cientos/shapes/sphere' },
+              { text: 'Tetrahedron', link: '/en/cientos/shapes/tetrahedron' },
+              { text: 'Torus', link: '/en/cientos/shapes/torus' },
               { text: 'TorusKnot', link: '/cientos/shapes/torus-knot' },
-              { text: 'Tube', link: '/cientos/shapes/tube' },
+              { text: 'Tube', link: '/en/cientos/shapes/tube' },
             ],
           },
           {
             text: 'Misc',
-            items: [{ text: 'useTweakpane', link: '/cientos/misc/use-tweakpane' }],
+            items: [{ text: 'useTweakpane', link: '/en/cientos/misc/use-tweakpane' }],
           },
         ],
       },
     ],
     nav: [
-      { text: 'Guide', link: '/guide/' },
-      { text: 'API', link: '/api/renderer' },
+      { text: 'Guide', link: '/en/guide/' },
+      { text: 'API', link: '/en/api/renderer' },
       /*       { text: 'API', link: '/api/' },
       { text: 'Config', link: '/config/' }, */
       /*  {

+ 2 - 2
docs/index.md

@@ -14,10 +14,10 @@ hero:
   actions:
     - theme: brand
       text: Get Started
-      link: /guide/
+      link: /en/guide/
     - theme: alt
       text: Why Tres?
-      link: /guide/#motivation
+      link: /en/guide/#motivation
 
 features:
   - icon: 💡