forked from jozu-ai/kitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.mts
138 lines (125 loc) · 4.53 KB
/
config.mts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
import { URL, fileURLToPath } from 'node:url'
import { defineConfig } from 'vitepress'
import { getSidebarItemsFromMdFiles } from './utils.mts'
import { resolve } from 'path'
// https://vitepress.dev/reference/site-config
export default defineConfig({
appearance: 'force-dark',
srcDir: 'src',
title: 'KitOps',
description: 'Documentation for KitOps',
head: [
['link', { rel: "apple-touch-icon", sizes: "180x180", href: "/favicons/apple-touch-icon.png"}],
['link', { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicons/favicon-32x32.png"}],
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicons/favicon-16x16.png"}],
['link', { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicons/favicon-16x16.png"}],
['link', { rel: "manifest", href: "/favicons/site.webmanifest"}],
['link', { rel: "mask-icon", href: "/favicons/safari-pinned-tab.svg", color: "#000000"}],
['link', { rel: "shortcut icon", href: "/favicon.ico"}],
['meta', { name: "msapplication-TileColor", content: "#000000"}],
['meta', { name: "msapplication-config", content: "/favicons/browserconfig.xml"}],
['meta', { name: "theme-color", content: "#000000"}],
['script', { async: '', src: 'https://www.googletagmanager.com/gtag/js?id=G-QTDTMG01Z5' } ],
['script', {}, "window.dataLayer = window.dataLayer || [];\nfunction gtag(){dataLayer.push(arguments);}\ngtag('js', new Date());\ngtag('config', 'G-QTDTMG01Z5');"],
['script', {}, "(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});\nvar f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';\nj.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);\n})(window,document,'script','dataLayer','GTM-TFFZXCQW');"],
],
lastUpdated: true,
// https://vitepress.dev/reference/default-theme-config
themeConfig: {
outline: [2, 4],
logo: '/logo.svg',
externalLinkIcon: true,
search: {
provider: 'local'
},
// Top navigation
nav: [
{ text: 'Why Kit?', activeMatch: `^/#whykitops`, link: '/#whykitops' },
{ text: 'How does it work?', activeMatch: `^/#howdoesitwork`, link: '/#howdoesitwork' },
{ text: 'Docs', activeMatch: `^/docs`, link: '/docs/overview' },
{ text: 'Blog', activeMatch: `^/blog`, link: '/blog' },
],
// Sidebar nav
sidebar: [
{
text: 'Getting started',
items: [
{ text: 'Overview', link: '/docs/overview' },
{ text: 'Quick Start', link: '/docs/quick-start.md' },
{ text: 'Use Cases', link: '/docs/use-cases' },
{ text: 'Why KitOps?', link: '/docs/why-kitops' },
]
},
{
text: 'ModelKit',
items: [
{ text: 'Introduction', link: '/docs/modelkit/intro' },
{ text: 'Specification', link: '/docs/modelkit/spec' },
{ text: 'Compatibility', link: '/docs/modelkit/compatibility' },
]
},
{
text: 'Kitfile',
items: [
{ text: 'Overview', link: '/docs/kitfile/kf-overview' },
{ text: 'Format', link: '/docs/kitfile/format' },
]
},
{
text: 'CLI',
items: getSidebarItemsFromMdFiles('docs/cli', {
replacements: {
'cli-reference': 'Command Reference' ,
'installation': 'Download & Install'
},
textFormat: (text) => text.replaceAll('cli-', '')
})
},
{
text: 'Contribute',
items: [
{ text: 'Contribute to KitOps docs', link: '/contributing' }
]
},
],
socialLinks: [
{
icon: 'discord',
link: 'https://discord.gg/YyAfWnEg'
},
{
icon: 'github',
link: 'https://github.com/jozu-ai/kitops'
}
],
footer: {
license: {
text: 'MIT License',
link: 'https://opensource.org/licenses/MIT'
},
copyright: `Copyright © ${new Date().getFullYear()} Jozu`
}
},
vite: {
resolve: {
alias: [
// Override the footer with out custom footer
{
find: /^.*\/VPFooter\.vue$/,
replacement: fileURLToPath(
new URL('./theme/components/Footer.vue', import.meta.url)
)
},
{
find: '@',
replacement: resolve(__dirname, '../src'),
},
{
find: '$public',
replacement: resolve(__dirname, '../src/public')
}
]
}
},
ignoreDeadLinks: true
})