Skip to content

Commit d92870c

Browse files
committed
docs(en): merging all conflicts
2 parents a465a96 + 4ee072e commit d92870c

File tree

109 files changed

+8671
-5059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+8671
-5059
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules
22
dist
33
.vitepress/@slidev
4+
.vitepress/cache

.vitepress/config.js renamed to .vitepress/config.ts

Lines changed: 158 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
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',
@@ -55,7 +59,18 @@ const Guide = [
5559
},
5660
]
5761

58-
const Theme = [
62+
const BuiltIn: DefaultTheme.NavItemWithLink[] = [
63+
{
64+
text: 'Components',
65+
link: '/builtin/components',
66+
},
67+
{
68+
text: 'Layouts',
69+
link: '/builtin/layouts',
70+
},
71+
]
72+
73+
const Theme: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildren)[] = [
5974
{
6075
text: 'Theme benutzen',
6176
link: '/themes/use',
@@ -70,7 +85,7 @@ const Theme = [
7085
},
7186
]
7287

73-
const Addon = [
88+
const Addon: DefaultTheme.NavItemWithLink[] = [
7489
{
7590
text: 'Addon benutzen',
7691
link: '/addons/use',
@@ -81,6 +96,7 @@ const Addon = [
8196
},
8297
]
8398

99+
<<<<<<< HEAD:.vitepress/config.js
84100
const Translations = [
85101
{
86102
text: 'Deutsch',
@@ -128,6 +144,9 @@ const Translations = [
128144
]
129145

130146
const Customizations = [
147+
=======
148+
const Customizations: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildren)[] = [
149+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
131150
{
132151
text: 'Individualisierung',
133152
link: '/custom/',
@@ -153,8 +172,13 @@ const Customizations = [
153172
link: '/custom/config-vite',
154173
},
155174
{
175+
<<<<<<< HEAD:.vitepress/config.js
156176
text: 'Windi CSS konfigurieren',
157177
link: '/custom/config-windicss',
178+
=======
179+
text: 'Configure UnoCSS',
180+
link: '/custom/config-unocss',
181+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
158182
},
159183
{
160184
text: 'Monaco konfigurieren',
@@ -183,10 +207,10 @@ const Customizations = [
183207
{
184208
text: 'Globale Ebenen',
185209
link: '/custom/global-layers',
186-
}
210+
},
187211
]
188212

189-
const Resources = [
213+
const Resources: DefaultTheme.NavItemWithLink[] = [
190214
{
191215
text: 'Beispielprojekte',
192216
link: '/showcases',
@@ -201,20 +225,26 @@ const Resources = [
201225
},
202226
]
203227

204-
const slidebars = [
228+
const slidebars: DefaultTheme.SidebarItem[] = [
205229
{
206230
text: 'Guide',
207-
children: Guide,
231+
items: Guide,
208232
},
209233
{
234+
<<<<<<< HEAD:.vitepress/config.js
210235
text: 'Themen',
211236
children: Theme,
237+
=======
238+
text: 'Themes',
239+
items: Theme,
240+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
212241
},
213242
{
214243
text: 'Addons',
215-
children: Addon,
244+
items: Addon,
216245
},
217246
{
247+
<<<<<<< HEAD:.vitepress/config.js
218248
text: 'Individualisierung',
219249
children: Customizations,
220250
},
@@ -230,13 +260,18 @@ const slidebars = [
230260
link: '/builtin/layouts',
231261
},
232262
],
263+
=======
264+
text: 'Customizations',
265+
items: Customizations,
266+
},
267+
{
268+
text: 'Built-in',
269+
items: BuiltIn,
270+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
233271
},
234272
]
235273

236-
/**
237-
* @type {import('vitepress').UserConfig}
238-
*/
239-
module.exports = {
274+
export default defineConfig({
240275
title: 'Slidev',
241276
description: 'Präsentationsfolien für Entwickler',
242277
head: [
@@ -252,9 +287,27 @@ module.exports = {
252287
['link', { rel: 'preconnect', crossorigin: 'anonymous', href: 'https://fonts.gstatic.com' }],
253288
['link', { href: 'https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@200;400;500&family=Inter:wght@200;400;500;600', rel: 'stylesheet' }],
254289
],
290+
markdown: {
291+
theme: {
292+
light: 'vitesse-light',
293+
dark: 'vitesse-dark',
294+
},
295+
async shikiSetup(shiki) {
296+
await shiki.loadLanguage(
297+
'html',
298+
'xml',
299+
'vue',
300+
'markdown',
301+
)
302+
},
303+
codeTransformers: [
304+
transformerTwoslash(),
305+
],
306+
},
307+
cleanUrls: true,
255308
themeConfig: {
256-
repo: 'slidevjs/docs',
257309
logo: '/logo.svg',
310+
<<<<<<< HEAD:.vitepress/config.js
258311
docsBranch: 'main',
259312
editLinks: true,
260313
editLinkText: 'Schlage Verbesserungen an dieser Seite vor',
@@ -267,6 +320,15 @@ module.exports = {
267320
// for translations maintainers: change the filter to your locale code (subdomain name)
268321
facetFilters: ['language:de']
269322
}
323+
=======
324+
editLink: {
325+
pattern: 'https://github.com/slidevjs/docs/edit/main/:path',
326+
text: 'Suggest changes to this page',
327+
},
328+
329+
search: {
330+
provider: 'local',
331+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
270332
},
271333

272334
nav: [
@@ -275,6 +337,7 @@ module.exports = {
275337
items: Guide,
276338
},
277339
{
340+
<<<<<<< HEAD:.vitepress/config.js
278341
text: 'Thema',
279342
items: Theme,
280343
},
@@ -285,17 +348,50 @@ module.exports = {
285348
{
286349
text: 'Individualisieren',
287350
items: Customizations,
351+
=======
352+
text: 'Theme',
353+
items: [
354+
...Theme,
355+
{
356+
text: 'Built-in',
357+
items: BuiltIn,
358+
},
359+
],
360+
},
361+
{
362+
text: 'Customize',
363+
items: [
364+
...Customizations,
365+
{
366+
text: 'Addon',
367+
items: Addon,
368+
},
369+
],
370+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
288371
},
289372
{
290373
text: 'Ressourcen',
291374
items: Resources,
292375
},
293376
{
377+
<<<<<<< HEAD:.vitepress/config.js
294378
text: 'Deutsch',
295379
items: Translations,
380+
=======
381+
text: `v${CURRENT_VERSION}`,
382+
items: [
383+
{ text: 'Release Notes', link: 'https://github.com/slidevjs/slidev/releases' },
384+
],
385+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0:.vitepress/config.ts
296386
},
297387
],
298388

389+
socialLinks: [
390+
{ icon: 'github', link: 'https://github.com/slidevjs/slidev' },
391+
{ icon: 'twitter', link: 'https://twitter.com/slidevjs' },
392+
{ icon: 'discord', link: 'https://chat.sli.dev' },
393+
],
394+
299395
sidebar: {
300396
'/guide/': slidebars,
301397
'/themes/': slidebars,
@@ -305,5 +401,52 @@ module.exports = {
305401
'/resources/': slidebars,
306402
'/': slidebars,
307403
},
404+
405+
footer: {
406+
message: 'Released under the MIT License.',
407+
copyright: 'Copyright © 2020 Anthony Fu.',
408+
},
409+
},
410+
411+
locales: {
412+
root: {
413+
label: 'English',
414+
},
415+
zh: {
416+
label: '简体中文',
417+
link: 'https://cn.sli.dev/',
418+
},
419+
fr: {
420+
label: 'Français',
421+
link: 'https://fr.sli.dev/',
422+
},
423+
es: {
424+
label: 'Español',
425+
link: 'https://es.sli.dev/',
426+
},
427+
ru: {
428+
label: 'Русский',
429+
link: 'https://ru.sli.dev/',
430+
},
431+
vn: {
432+
label: 'Việt Nam',
433+
link: 'https://vn.sli.dev/',
434+
},
435+
de: {
436+
label: 'Deutsch',
437+
link: 'https://de.sli.dev/',
438+
},
439+
br: {
440+
label: 'Português (BR)',
441+
link: 'https://br.sli.dev/',
442+
},
443+
el: {
444+
label: 'Ελληνικά',
445+
link: 'https://el.sli.dev/',
446+
},
447+
ja: {
448+
label: '日本語',
449+
link: 'https://ja.sli.dev/',
450+
},
308451
},
309-
}
452+
})

.vitepress/scripts/prepare.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
const fs = require('fs-extra')
1+
import { copy, remove } from 'fs-extra'
22

3-
async function main(){
4-
await fs.remove('.vitepress/@slidev')
5-
await fs.copy('node_modules/@slidev', '.vitepress/@slidev', { dereference: true })
3+
async function main() {
4+
await remove('.vitepress/@slidev')
5+
await copy('node_modules/@slidev', '.vitepress/@slidev', { dereference: true })
66
}
77

88
main()

.vitepress/showcases.ts

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ export const showcases: ShowCaseInfo[] = [
115115
name: 'Alexander Eble',
116116
link: 'https://github.com/alexanderdavide',
117117
},
118-
slidesLink: 'https://git-most-wanted.alex-eble.de',
118+
slidesLink: 'https://alexeble.de/talks/git-most-wanted/',
119119
sourceLink: 'https://github.com/alexanderdavide/git-most-wanted',
120120
at: 'Internal Tech Talk',
121121
datetime: '2022-03-11',
@@ -132,7 +132,7 @@ export const showcases: ShowCaseInfo[] = [
132132
at: 'OpenFunction Tutorial Sharing',
133133
datetime: '2022-05-08',
134134
},
135-
{
135+
{
136136
title: 'Is it Okay to Pursue Functional Programming on Frontend?',
137137
author: {
138138
name: 'Minsu Kim , Changhui Lee',
@@ -166,6 +166,30 @@ export const showcases: ShowCaseInfo[] = [
166166
cover: 'https://raw.githubusercontent.com/Mokkapps/vuejsnation-2023-lightning-talk-polite-popup-nuxt-3-slides/main/screenshots/001.png',
167167
datetime: '2023-01-25',
168168
},
169+
{
170+
title: 'Dev Environment as Code',
171+
cover: 'https://cdn.jsdelivr.net/gh/alexanderdavide/dev-environment-as-code@assets/slides-export/001.png',
172+
author: {
173+
name: 'Alexander Eble',
174+
link: 'https://github.com/alexanderdavide',
175+
},
176+
slidesLink: 'https://alexeble.de/talks/dev-environment-as-code/',
177+
sourceLink: 'https://github.com/alexanderdavide/dev-environment-as-code',
178+
at: 'Internal Tech Talk',
179+
datetime: '2022-12-01',
180+
},
181+
{
182+
title: 'Exploring Social Engineering',
183+
cover: 'https://raw.githubusercontent.com/zyf722/exploring-social-engineering-slides/main/assets/Screenshot_Cover.png',
184+
author: {
185+
name: 'zyf722',
186+
link: 'https://github.com/zyf722',
187+
},
188+
slidesLink: 'https://zyf722.github.io/exploring-social-engineering-slides/',
189+
sourceLink: 'https://github.com/zyf722/exploring-social-engineering-slides',
190+
at: 'Presentation on Social Engineering in Computers in Society class',
191+
datetime: '2023-10-20',
192+
},
169193
// Add yours here!
170194
{
171195
title: 'Yours?',

0 commit comments

Comments
 (0)