@@ -9,7 +9,8 @@ import { bundledLanguages } from 'shiki'
99import { join , dirname } from 'node:path'
1010import { tabsMarkdownPlugin } from 'vitepress-plugin-tabs'
1111import { groupIconVitePlugin } from 'vitepress-plugin-group-icons'
12-
12+ import { loadEnv } from 'vitepress'
13+ const env = loadEnv ( '' , process . cwd ( ) )
1314const sidebar = useSidebar ( { spec, collapsible : true } )
1415
1516// Add SSH to bundled languages
@@ -48,7 +49,7 @@ export default defineConfig({
4849 [ 'meta' , { property : 'twitter:image' , content : 'https://coolcdn.b-cdn.net/assets/coolify/og-image-docs.png' } ] ,
4950 [ 'link' , { rel : 'icon' , href : '/docs/coolify-logo-transparent.png' } ] ,
5051 [ 'link' , { rel : 'icon' , type : 'image/x-icon' , href : '/docs/public/favicon.ico' } ] ,
51- [ 'script' , { defer : 'true' , src : 'https://analytics.coollabs.io/js/script.tagged-events.js' , 'data-domain' : 'coolify.io/docs' } ] ,
52+ [ 'script' , { defer : 'true' , src : 'https://analytics.coollabs.io/js/script.tagged-events.js' , 'data-domain' : env . VITE_ANALYTICS_DOMAIN ?? 'coolify.io/docs' } ] ,
5253 [ 'script' , { async : 'true' , src : '/docs/trieve-user-script.js' } ] ,
5354 ] ,
5455 themeConfig : {
@@ -91,24 +92,25 @@ export default defineConfig({
9192 collapsed : false ,
9293 items : [
9394 { text : 'Introduction' , link : '/get-started/introduction' } ,
94- {
95- text : 'Installation' ,
95+ {
96+ text : 'Installation' ,
9697 link : '/get-started/installation' ,
97- collapsed : false ,
98+ collapsed : false ,
9899 items : [
99100 { text : 'Upgrade' , link : '/get-started/upgrade' } ,
100101 { text : 'Downgrade' , link : '/get-started/downgrade' } ,
101102 { text : 'Uninstallation' , link : '/get-started/uninstallation' } ,
102103 ]
103104 } ,
104105 { text : 'Usage' , link : '/get-started/usage' } ,
105- { text : 'Concepts' , link : '/get-started/concepts' ,
106+ {
107+ text : 'Concepts' , link : '/get-started/concepts' ,
106108 collapsed : true ,
107109 items : [
108110 { text : 'Screenshots' , link : '/get-started/screenshots' } ,
109111 { text : 'Videos' , link : '/get-started/videos' } ,
110112 ]
111- } ,
113+ } ,
112114 { text : 'Team' , link : '/get-started/team' } ,
113115 { text : 'Support' , link : '/get-started/support' } ,
114116 { text : 'Sponsors' , link : '/get-started/sponsors' } ,
@@ -620,7 +622,7 @@ export default defineConfig({
620622 plugins : [
621623 yaml as any ,
622624 llmstxt ( {
623- ignoreFiles : [
625+ ignoreFiles : [
624626 '/docs/api-reference/api/**/*' ,
625627 '**/api-reference/api/**/*'
626628 ] ,
0 commit comments