/
config.mts
156 lines (145 loc) · 4.56 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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
import { URL, fileURLToPath } from 'node:url'
import { resolve } from 'path'
import { defineConfig } from 'vitepress'
// https://vitepress.dev/reference/site-config
export default defineConfig({
appearance: 'force-dark',
srcDir: 'src',
title: 'KitOps',
titleTemplate: '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"}]
],
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: 'Installation', link: '/docs/cli/installation' },
{ text: 'Use Cases', link: '/docs/use-cases' },
{ text: 'Why KitOps?', link: '/docs/why-kitops' },
]
},
{
text: 'ModelKit',
items: [
{ text: 'Introduction', link: '/docs/modelkit/intro' },
]
},
{
text: 'Kitfile',
items: [
{ text: 'Overview', link: '/docs/kitfile/kf-overview' },
{ text: 'Format', link: '../pkg/artifact/kit-file.md' },
{ text: 'Benefits', link: '/docs/kitfile/benefits' },
]
},
{
text: 'CLI',
items: [
{ text: 'Download & Install', link: '/docs/cli/installation' },
{ text: 'Command Reference', link: '/docs/cli/kit' },
]
},
{
text: 'MLOps with Kitfile',
items: [
{ text: 'Kit and CI/CD', link: '/docs/mlops/ci-cd' },
//{ text: 'Kit and model orchestration', link: '/docs/mlops/orchestration' },
//{ text: 'Kit and registries', link: '/docs/mlops/registries' },
]
},
/*
{
text: 'Advanced',
items: [
{ text: 'Fine-tuning', link: '/docs/mlops/ci-cd' },
{ text: 'Multi-models and Multi-tasking', link: '/docs/mlops/ci-cd' },
{ text: 'Parallel training', link: '/docs/mlops/ci-cd' },
{ text: 'Reinforcement and deep RL', link: '/docs/mlops/ci-cd' },
]
},
*/
{
text: 'Contribute',
items: [
{ text: 'Contribute to KitOps docs', link: '/' }
]
},
/*
{
text: 'Documentation Examples',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' }
]
}
*/
],
socialLinks: [
{
icon: 'discord',
link: 'https://discord.gg/XzSmtPn3'
},
{
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')
}
]
}
}
})