瀏覽代碼

docs: added version release notes to nav

Alvaro 2 年之前
父節點
當前提交
3effa30f97
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      docs/.vitepress/config.ts

+ 15 - 0
docs/.vitepress/config.ts

@@ -1,4 +1,5 @@
 import { defineConfig } from 'vitepress'
+import { version } from '../../package.json'
 
 export default defineConfig({
   title: 'TresJS',
@@ -28,6 +29,20 @@ export default defineConfig({
         items: [{ text: 'Extending', link: '/advanced/extending' }],
       },
     ],
+    nav: [
+      { text: 'Guide', link: '/guide/' },
+      { text: 'API', link: '/api/' },
+      { text: 'Config', link: '/config/' },
+      {
+        text: `v${version}`,
+        items: [
+          {
+            text: 'Release Notes ',
+            link: 'https://github.com/Tresjs/tres/releases',
+          },
+        ],
+      },
+    ],
     socialLinks: [
       { icon: 'github', link: 'https://github.com/tresjs/tres' },
       { icon: 'twitter', link: 'https://twitter.com/alvarosabu' },