1- // @ts -check
1+ import type { DefaultTheme } from 'vitepress'
2+ import { defineConfig } from 'vitepress'
3+ import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
24
3- const Guide = [
5+ const CURRENT_VERSION = '0.48.0-beta.22'
6+
7+ const Guide : DefaultTheme . NavItemWithLink [ ] = [
48 {
59 text : 'Warum Slidev' ,
610 link : '/guide/why' ,
@@ -26,8 +30,25 @@ const Guide = [
2630 link : '/guide/animations' ,
2731 } ,
2832 {
33+ < << << << HEAD :. vitepress / config . js
2934 text : 'Exportieren' ,
3035 link : '/guide/exporting' ,
36+ = === ===
37+ text : 'Draggable Elements' ,
38+ link : '/guide/draggable' ,
39+ } ,
40+ {
41+ text : 'Presenter Mode' ,
42+ link : '/guide/presenter-mode' ,
43+ } ,
44+ {
45+ text : 'Slides Overview' ,
46+ link : '/guide/overview' ,
47+ } ,
48+ {
49+ text : 'Drawing & Annotations' ,
50+ link : '/guide/drawing' ,
51+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
3152 } ,
3253 {
3354 text : 'Statisches Hosting' ,
@@ -55,7 +76,18 @@ const Guide = [
5576 } ,
5677]
5778
58- const Theme = [
79+ const BuiltIn : DefaultTheme . NavItemWithLink [ ] = [
80+ {
81+ text : 'Components' ,
82+ link : '/builtin/components' ,
83+ } ,
84+ {
85+ text : 'Layouts' ,
86+ link : '/builtin/layouts' ,
87+ } ,
88+ ]
89+
90+ const Theme : ( DefaultTheme . NavItemWithLink | DefaultTheme . NavItemChildren ) [ ] = [
5991 {
6092 text : 'Theme benutzen' ,
6193 link : '/themes/use' ,
@@ -70,7 +102,7 @@ const Theme = [
70102 } ,
71103]
72104
73- const Addon = [
105+ const Addon : DefaultTheme . NavItemWithLink [ ] = [
74106 {
75107 text : 'Addon benutzen' ,
76108 link : '/addons/use' ,
@@ -81,6 +113,7 @@ const Addon = [
81113 } ,
82114]
83115
116+ << < < < << HEAD :. vitepress / config . js
84117const Translations = [
85118 {
86119 text : 'Deutsch' ,
@@ -128,6 +161,9 @@ const Translations = [
128161]
129162
130163const Customizations = [
164+ === === =
165+ const Customizations : ( DefaultTheme . NavItemWithLink | DefaultTheme . NavItemChildren ) [ ] = [
166+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
131167 {
132168 text : 'Individualisierung' ,
133169 link : '/custom/' ,
@@ -153,8 +189,13 @@ const Customizations = [
153189 link : '/custom/config-vite' ,
154190 } ,
155191 {
192+ < < << << < HEAD :. vitepress / config . js
156193 text : 'Windi CSS konfigurieren' ,
157194 link : '/custom/config-windicss' ,
195+ = === ===
196+ text : 'Configure UnoCSS' ,
197+ link : '/custom/config-unocss' ,
198+ > > >>> >> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
158199 } ,
159200 {
160201 text : 'Monaco konfigurieren' ,
@@ -173,20 +214,40 @@ const Customizations = [
173214 link : '/custom/config-parser' ,
174215 } ,
175216 {
217+ < < << << < HEAD :. vitepress / config . js
176218 text : 'Shortcuts konfigurieren' ,
177219 link : '/custom/config-shortcuts' ,
178220 } ,
179221 {
180222 text : 'Vue Globaler Kontext' ,
223+ === === =
224+ text : 'Configure Routes' ,
225+ link : '/custom/config-routes' ,
226+ } ,
227+ {
228+ text : 'Configure Shortcuts' ,
229+ link : '/custom/config-shortcuts' ,
230+ } ,
231+ {
232+ text : 'Configure Code Runners' ,
233+ link : '/custom/config-code-runners' ,
234+ } ,
235+ {
236+ text : 'Configure Context Menu' ,
237+ link : '/custom/config-context-menu' ,
238+ } ,
239+ {
240+ text : 'Vue Global Context' ,
241+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
181242 link : '/custom/vue-context' ,
182243 } ,
183244 {
184245 text : 'Globale Ebenen' ,
185246 link : '/custom/global-layers' ,
186- }
247+ } ,
187248]
188249
189- const Resources = [
250+ const Resources : DefaultTheme . NavItemWithLink [ ] = [
190251 {
191252 text : 'Beispielprojekte' ,
192253 link : '/showcases' ,
@@ -201,20 +262,26 @@ const Resources = [
201262 } ,
202263]
203264
204- const slidebars = [
265+ const slidebars : DefaultTheme . SidebarItem [ ] = [
205266 {
206267 text : 'Guide' ,
207- children : Guide ,
268+ items : Guide ,
208269 } ,
209270 {
271+ < < << << < HEAD :. vitepress / config . js
210272 text : 'Themen' ,
211273 children : Theme ,
274+ = === ===
275+ text : 'Themes' ,
276+ items : Theme ,
277+ > > >>> >> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
212278 } ,
213279 {
214280 text : 'Addons' ,
215- children : Addon ,
281+ items : Addon ,
216282 } ,
217283 {
284+ < < << << < HEAD :. vitepress / config . js
218285 text : 'Individualisierung' ,
219286 children : Customizations ,
220287 } ,
@@ -230,13 +297,22 @@ const slidebars = [
230297 link : '/builtin/layouts' ,
231298 } ,
232299 ] ,
300+ === === =
301+ text : 'Customizations' ,
302+ items : Customizations ,
303+ } ,
304+ {
305+ text : 'Built-in' ,
306+ items : BuiltIn ,
307+ } ,
308+ {
309+ text : 'Resources' ,
310+ items : Resources ,
311+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
233312 } ,
234313]
235314
236- /**
237- * @type {import('vitepress').UserConfig }
238- */
239- module . exports = {
315+ export default defineConfig ( {
240316 title : 'Slidev' ,
241317 description : 'Präsentationsfolien für Entwickler' ,
242318 head : [
@@ -252,9 +328,27 @@ module.exports = {
252328 [ 'link' , { rel : 'preconnect' , crossorigin : 'anonymous' , href : 'https://fonts.gstatic.com' } ] ,
253329 [ 'link' , { href : 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200;400;500&family=Inter:wght@200;400;500;600' , rel : 'stylesheet' } ] ,
254330 ] ,
331+ markdown : {
332+ theme : {
333+ light : 'vitesse-light' ,
334+ dark : 'vitesse-dark' ,
335+ } ,
336+ async shikiSetup ( shiki ) {
337+ await shiki . loadLanguage (
338+ 'html' ,
339+ 'xml' ,
340+ 'vue' ,
341+ 'markdown' ,
342+ )
343+ } ,
344+ codeTransformers : [
345+ transformerTwoslash ( ) ,
346+ ] ,
347+ } ,
348+ cleanUrls : true ,
255349 themeConfig : {
256- repo : 'slidevjs/docs' ,
257350 logo : '/logo.svg' ,
351+ < << << << HEAD :. vitepress / config . js
258352 docsBranch : 'main' ,
259353 editLinks : true ,
260354 editLinkText : 'Schlage Verbesserungen an dieser Seite vor' ,
@@ -267,6 +361,15 @@ module.exports = {
267361 // for translations maintainers: change the filter to your locale code (subdomain name)
268362 facetFilters : [ 'language:de' ]
269363 }
364+ === = ===
365+ editLink : {
366+ pattern : 'https://github.com/slidevjs/slidev/edit/main/docs/:path' ,
367+ text : 'Suggest changes to this page' ,
368+ } ,
369+
370+ search : {
371+ provider : 'local' ,
372+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
270373 } ,
271374
272375 nav : [
@@ -275,6 +378,7 @@ module.exports = {
275378 items : Guide ,
276379 } ,
277380 {
381+ < << << << HEAD :. vitepress / config . js
278382 text : 'Thema' ,
279383 items : Theme ,
280384 } ,
@@ -285,17 +389,50 @@ module.exports = {
285389 {
286390 text : 'Individualisieren' ,
287391 items : Customizations ,
392+ = === ===
393+ text : 'Theme' ,
394+ items : [
395+ ...Theme ,
396+ {
397+ text : 'Built-in' ,
398+ items : BuiltIn ,
399+ } ,
400+ ] ,
401+ } ,
402+ {
403+ text : 'Customize' ,
404+ items : [
405+ ...Customizations ,
406+ {
407+ text : 'Addon' ,
408+ items : Addon ,
409+ } ,
410+ ] ,
411+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
288412 } ,
289413 {
290414 text : 'Ressourcen' ,
291415 items : Resources ,
292416 } ,
293417 {
418+ < << << << HEAD :. vitepress / config . js
294419 text : 'Deutsch' ,
295420 items : Translations ,
421+ = === ===
422+ text : `v${ CURRENT_VERSION } ` ,
423+ items : [
424+ { text : 'Release Notes' , link : 'https://github.com/slidevjs/slidev/releases' } ,
425+ ] ,
426+ > >>> >>> 21 fdadc17cd2018f65c637e5727de640db5036e3 :. vitepress / config . ts
296427 } ,
297428 ] ,
298429
430+ socialLinks : [
431+ { icon : 'github' , link : 'https://github.com/slidevjs/slidev' } ,
432+ { icon : 'twitter' , link : 'https://twitter.com/slidevjs' } ,
433+ { icon : 'discord' , link : 'https://chat.sli.dev' } ,
434+ ] ,
435+
299436 sidebar : {
300437 '/guide/' : slidebars ,
301438 '/themes/' : slidebars ,
@@ -305,5 +442,52 @@ module.exports = {
305442 '/resources/' : slidebars ,
306443 '/' : slidebars ,
307444 } ,
445+
446+ footer : {
447+ message : 'Released under the MIT License.' ,
448+ copyright : 'Copyright © 2020 Anthony Fu.' ,
449+ } ,
450+ } ,
451+
452+ locales : {
453+ root : {
454+ label : 'English' ,
455+ } ,
456+ zh : {
457+ label : '简体中文' ,
458+ link : 'https://cn.sli.dev/' ,
459+ } ,
460+ fr : {
461+ label : 'Français' ,
462+ link : 'https://fr.sli.dev/' ,
463+ } ,
464+ es : {
465+ label : 'Español' ,
466+ link : 'https://es.sli.dev/' ,
467+ } ,
468+ ru : {
469+ label : 'Русский' ,
470+ link : 'https://ru.sli.dev/' ,
471+ } ,
472+ vn : {
473+ label : 'Việt Nam' ,
474+ link : 'https://vn.sli.dev/' ,
475+ } ,
476+ de : {
477+ label : 'Deutsch' ,
478+ link : 'https://de.sli.dev/' ,
479+ } ,
480+ br : {
481+ label : 'Português (BR)' ,
482+ link : 'https://br.sli.dev/' ,
483+ } ,
484+ el : {
485+ label : 'Ελληνικά' ,
486+ link : 'https://el.sli.dev/' ,
487+ } ,
488+ ja : {
489+ label : '日本語' ,
490+ link : 'https://ja.sli.dev/' ,
491+ } ,
308492 } ,
309- }
493+ } )
0 commit comments