Skip to content

Commit cccdb99

Browse files
authored
Merge pull request #86 from slidevjs/sync-21fdadc1
docs(en): merge docs/main into docs-el/main @ 21fdadc
2 parents 5320557 + 49101e0 commit cccdb99

Some content is hidden

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

49 files changed

+5578
-5390
lines changed

.vitepress/config.ts

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,25 +30,29 @@ const Guide: DefaultTheme.NavItemWithLink[] = [
3030
link: '/guide/animations',
3131
},
3232
{
33-
text: 'Εξαγωγή',
34-
link: '/guide/exporting',
35-
},
36-
{
37-
text: 'Στατική Φιλοξενία',
38-
link: '/guide/hosting',
39-
},
40-
{
41-
text: 'Καταγραφή Παρουσίασης',
42-
link: '/guide/recording',
33+
text: 'Σύρσιμα Στοιχεία',
34+
link: '/guide/draggable',
4335
},
4436
{
4537
text: 'Λειτουργία Παρουσιαστή',
4638
link: '/guide/presenter-mode',
4739
},
40+
{
41+
text: 'Επισκόπηση Διαφανειών',
42+
link: '/guide/overview',
43+
},
4844
{
4945
text: 'Ζωγραφική & Σημειώσεις',
5046
link: '/guide/drawing',
5147
},
48+
{
49+
text: 'Στατική Φιλοξενία',
50+
link: '/guide/hosting',
51+
},
52+
{
53+
text: 'Καταγραφή Παρουσίασης',
54+
link: '/guide/recording',
55+
},
5256
{
5357
text: 'Ενσωματώσεις Συντάκτη',
5458
link: '/guide/editors',
@@ -141,10 +145,22 @@ const Customizations: (DefaultTheme.NavItemWithLink | DefaultTheme.NavItemChildr
141145
text: 'Ρυθμίστε Parser',
142146
link: '/custom/config-parser',
143147
},
148+
{
149+
text: 'Ρυθμίστε τις Διαδρομές',
150+
link: '/custom/config-routes',
151+
},
144152
{
145153
text: 'Ρυθμίστε Συντομεύσεις',
146154
link: '/custom/config-shortcuts',
147155
},
156+
{
157+
text: 'Ρυθμίστε τους Code Runners',
158+
link: '/custom/config-code-runners',
159+
},
160+
{
161+
text: 'Ρυθμίστε το Context Menu',
162+
link: '/custom/config-context-menu',
163+
},
148164
{
149165
text: 'Vue Global Context',
150166
link: '/custom/vue-context',
@@ -191,6 +207,10 @@ const slidebars: DefaultTheme.SidebarItem[] = [
191207
text: 'Ενσωματωμένα',
192208
items: BuiltIn,
193209
},
210+
{
211+
text: 'Resources',
212+
items: Resources,
213+
},
194214
]
195215

196216
export default defineConfig({
@@ -230,7 +250,7 @@ export default defineConfig({
230250
themeConfig: {
231251
logo: '/logo.svg',
232252
editLink: {
233-
pattern: 'https://github.com/slidevjs/docs-el/edit/main/:path',
253+
pattern: 'https://github.com/slidevjs/slidev/edit/main/docs/:path',
234254
text: 'Προτείνετε αλλαγές σε αυτή τη σελίδα',
235255
},
236256

.vitepress/showcases.ts

Lines changed: 51 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const showcases: ShowCaseInfo[] = [
2020
name: 'Anthony Fu',
2121
link: 'https://github.com/antfu',
2222
},
23-
slidesLink: 'https://sli.dev/demo/composable-vue',
24-
sourceLink: 'https://github.com/antfu/talks/tree/master/2021-04-29',
23+
slidesLink: 'https://talks.antfu.me/2021/composable-vue/',
24+
sourceLink: 'https://github.com/antfu/talks/tree/main/2021-04-29',
2525
at: 'VueDay 2021',
2626
datetime: '2021-04-29',
2727
},
@@ -49,29 +49,29 @@ export const showcases: ShowCaseInfo[] = [
4949
at: 'Enter.js Vue Day',
5050
datetime: '2021-06-15',
5151
},
52-
{
53-
title: 'Simply Publish Your Package to npm',
54-
author: {
55-
name: 'Lucky Dewa Satria',
56-
link: 'https://github.com/lucky401',
57-
},
58-
at: 'Weekly sharing',
59-
slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60-
cover: 'https://masukin.link/talks-cover-npm.png',
61-
datetime: '2021-06-12',
62-
},
63-
{
64-
title: 'Create Icon Package With Vue and Rollup',
65-
author: {
66-
name: 'Lucky Dewa Satria',
67-
link: 'https://github.com/lucky401',
68-
},
69-
at: 'Weekly Sharing',
70-
slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71-
sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72-
cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73-
datetime: '2021-06-19',
74-
},
52+
// {
53+
// title: 'Simply Publish Your Package to npm',
54+
// author: {
55+
// name: 'Lucky Dewa Satria',
56+
// link: 'https://github.com/lucky401',
57+
// },
58+
// at: 'Weekly sharing',
59+
// slidesLink: 'https://masukin.link/talks/simply-publish-your-package-to-npm',
60+
// cover: 'https://masukin.link/talks-cover-npm.png',
61+
// datetime: '2021-06-12',
62+
// },
63+
// {
64+
// title: 'Create Icon Package With Vue and Rollup',
65+
// author: {
66+
// name: 'Lucky Dewa Satria',
67+
// link: 'https://github.com/lucky401',
68+
// },
69+
// at: 'Weekly Sharing',
70+
// slidesLink: 'https://masukin.link/talks/create-icon-package-with-vue-and-rollup',
71+
// sourceLink: 'https://github.com/lucky401/Create-Icon-Package-With-Vue-and-Rollup',
72+
// cover: 'https://masukin.link/talks-cover-create-icon-package-with-vue-and-rollup.png',
73+
// datetime: '2021-06-19',
74+
// },
7575
{
7676
title: 'BeAPT',
7777
author: {
@@ -190,6 +190,30 @@ export const showcases: ShowCaseInfo[] = [
190190
at: 'Presentation on Social Engineering in Computers in Society class',
191191
datetime: '2023-10-20',
192192
},
193+
{
194+
title: 'Diablo Health Orb Shader',
195+
author: {
196+
name: 'SuneBear',
197+
link: 'https://github.com/sunebear',
198+
},
199+
at: 'rctAI Sessions',
200+
slidesLink: 'https://rct-ai.github.io/frontend-slides/diablo-health-orb-shader/',
201+
sourceLink: 'https://github.com/rct-ai/frontend-slides',
202+
cover: 'https://github-production-user-asset-6210df.s3.amazonaws.com/7693264/284304324-db973b4c-a043-4644-932c-826169a1b4d8.gif',
203+
datetime: '2022-09-01',
204+
},
205+
{
206+
title: 'How Rust error handling ease web development',
207+
author: {
208+
name: 'Nguyễn Hồng Quân',
209+
link: 'https://quan.hoabinh.vn',
210+
},
211+
at: 'FOSSASIA Summit 2024',
212+
slidesLink: 'https://talk.quan.hoabinh.vn/rust-error-handling-ease-web-dev/',
213+
sourceLink: 'https://hongquan@bitbucket.org/hongquan/rust-error-handling-ease-web-dev.git',
214+
cover: 'https://i.imgur.com/2eBJofY.png',
215+
datetime: '2024-04-10',
216+
},
193217
// Add yours here!
194218
{
195219
title: 'Yours?',
@@ -199,6 +223,6 @@ export const showcases: ShowCaseInfo[] = [
199223
at: 'Submit your talk/presentation to be list here!',
200224
slidesLink: 'https://github.com/slidevjs/docs/edit/main/.vitepress/showcases.ts',
201225
cover: `${import.meta.env.BASE_URL}theme-placeholder.png`,
202-
datetime: '2021-04-29',
226+
datetime: '2020-1-1',
203227
},
204-
]
228+
].sort((a, b) => new Date(b.datetime).getTime() - new Date(a.datetime).getTime())

.vitepress/theme/components/Demo.vue

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ if (typeof window !== 'undefined') {
7171
}
7272
7373
onMounted(() => {
74-
new TypeIt(block.value, {
74+
// @ts-expect-error wrong types provided by TypeIt
75+
new TypeIt(block.value!, {
7576
speed: 50,
7677
startDelay: 900,
7778
afterStep: () => {
@@ -81,9 +82,9 @@ onMounted(() => {
8182
})
8283
.type('<br><span class="token title"># Καλώς ήρθατε στο Slidev!</span><br><br>', { delay: 400 })
8384
.type('Διαφάνειες παρουσίασης για προγραμματιστές', { delay: 400 })
84-
.move('START', { speed: 0 })
85+
.move(null, { to: 'START', speed: 0 })
8586
.type('<br>')
86-
.move('START')
87+
.move(null, { to: 'START' })
8788
.exec(pause)
8889
.type('<span class="token punctuation">---<br><br>---</span>')
8990
.move(-4)
@@ -101,7 +102,7 @@ onMounted(() => {
101102
.type(COVER_URL, { speed: 0 })
102103
.exec(resume)
103104
.pause(1000)
104-
.move('END', { speed: 0 })
105+
.move(null, { to: 'END', speed: 0 })
105106
.exec(pause)
106107
.type('<br><br><span class="token punctuation">---</span><br><br>', { delay: 400 })
107108
.exec(resume)

.vitepress/theme/components/DemoEditor.vue

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,27 @@
1313
padding: 10px;
1414
border-radius: 7px;
1515
position: relative;
16-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 30px 1px rgba(0, 0, 0, 0.15);
16+
box-shadow:
17+
0 0 0 1px rgba(0, 0, 0, 0.05),
18+
0 0 30px 1px rgba(0, 0, 0, 0.15);
1719
}
1820
.dark .demo-editor {
1921
@apply bg-[#161618] border border-gray-400 border-opacity-10;
2022
}
2123
.demo-editor::after {
22-
content: "";
24+
content: '';
2325
position: absolute;
2426
top: 12px;
2527
left: 10px;
2628
width: 12px;
2729
height: 12px;
2830
background: #f95c5b;
2931
border-radius: 100%;
30-
box-shadow: 0 0 0 1px #da3d42, 22px 0 0 0 #fabe3b, 22px 0 0 1px #ecb03e, 44px 0 0 0 #38cd46, 44px 0 0 1px #2eae32;
32+
box-shadow:
33+
0 0 0 1px #da3d42,
34+
22px 0 0 0 #fabe3b,
35+
22px 0 0 1px #ecb03e,
36+
44px 0 0 0 #38cd46,
37+
44px 0 0 1px #2eae32;
3138
}
3239
</style>

.vitepress/theme/components/DemoSlide.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
line-height: 1.2em;
1515
border-radius: 7px;
1616
position: relative;
17-
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 0 30px 1px rgba(0, 0, 0, 0.15);
17+
box-shadow:
18+
0 0 0 1px rgba(0, 0, 0, 0.05),
19+
0 0 30px 1px rgba(0, 0, 0, 0.15);
1820
@apply mt-4 transform translate-x-20 -translate-y-20 overflow-hidden;
1921
}
2022

.vitepress/theme/components/Environment.vue

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
defineProps<{ type: 'node' | 'client' }>()
2+
defineProps<{ type: 'node' | 'client' | 'both' }>()
33
</script>
44

55
<template>
@@ -10,7 +10,10 @@ defineProps<{ type: 'node' | 'client' }>()
1010
</summary>
1111

1212
<div class="pt2 opacity-75">
13-
<span v-if="type === 'node'">
13+
<span v-if="type === 'both'">
14+
Αυτή η λειτουργία ρύθμισης θα εκτελεστεί τόσο στην πλευρά του Node.js όσο και στην πλευρά του πελάτη. Αποφύγετε τη χρήση είτε του API του Node είτε του DOM για να αποφύγετε σφάλματα κατά την εκτέλεση.
15+
</span>
16+
<span v-else-if="type === 'node'">
1417
Αυτή η λειτουργία ρύθμισης θα εκτελεστεί μόνο σε περιβάλλον Node.js, μπορείτε να έχετε πρόσβαση στο API του Node.
1518
</span>
1619
<span v-else>

.vitepress/theme/components/ShowCaseInfo.vue

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ defineProps<{
77
</script>
88

99
<template>
10-
<div>
11-
<div class="block mb-1.5 w-full relative aspect-16/9">
10+
<div class="flex flex-col gap-2">
11+
<div class="block w-full relative aspect-16/9">
1212
<a
1313
class="absolute top-0 bottom-0 left-0 right-0 overflow-hidden"
1414
border="~ rounded gray-400 opacity-20"
@@ -18,45 +18,44 @@ defineProps<{
1818
<img :src="info.cover">
1919
</a>
2020
</div>
21-
<div class="font-bold">
21+
<div class="font-bold line-clamp-2">
2222
{{ info.title }}
2323
</div>
24-
<div
25-
class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis"
26-
>
24+
<div class="text-current text-xs opacity-75 whitespace-nowrap overflow-hidden overflow-ellipsis">
2725
{{ info.at }}
2826
</div>
29-
<div class="mt-2 flex">
27+
<div class="flex-auto" />
28+
<div class="flex">
3029
<a
3130
v-if="info.author.link"
3231
:href="info.author.link"
33-
class="text-current text-sm opacity-50"
32+
class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis"
3433
target="_blank"
3534
>{{ info.author.name }}</a>
36-
<div v-else class="text-current text-sm opacity-50">
35+
<div v-else class="text-current! text-sm opacity-50 whitespace-nowrap overflow-hidden overflow-ellipsis">
3736
{{ info.author.name }}
3837
</div>
3938
<div class="flex-auto" />
4039
<a
4140
v-if="info.videoLink"
4241
:href="info.videoLink"
43-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
42+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
4443
target="_blank"
4544
>
4645
<carbon:video />
4746
</a>
4847
<a
4948
v-if="info.slidesLink"
5049
:href="info.slidesLink"
51-
class="ml-2 text-current opacity-20 hover:opacity-100 hover:text-[#cb3837]"
50+
class="ml-2 text-current! opacity-20 hover:opacity-100 hover:text-[#cb3837]"
5251
target="_blank"
5352
>
5453
<carbon:presentation-file />
5554
</a>
5655
<a
5756
v-if="info.sourceLink"
5857
:href="info.sourceLink"
59-
class="ml-2 text-current opacity-20 hover:opacity-100"
58+
class="ml-2 text-current! opacity-20 hover:opacity-100"
6059
target="_blank"
6160
>
6261
<carbon:logo-github />

.vitepress/theme/styles/custom.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.icon-btn {
22
--uno: inline-block cursor-pointer select-none important-outline-none;
33
--uno: opacity-75 transition duration-200 ease-in-out align-middle rounded p-2;
4-
--uno: hover:(opacity-100 bg-gray-400 bg-opacity-10);
4+
--uno: hover-(opacity-100 bg-gray-400 bg-opacity-10);
55
}
66

77
.icon-btn.disabled {

.vitepress/theme/styles/vars.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
* -------------------------------------------------------------------------- */
4545

4646
:root {
47-
--vp-c-brand-1: #3AB9D4;
47+
--vp-c-brand-1: #3ab9d4;
4848
--vp-c-brand-2: #60c4db;
4949
--vp-c-brand-3: #6fcce1;
50-
--vp-c-brand-soft: #3AB9D450;
50+
--vp-c-brand-soft: #3ab9d450;
5151
--vp-c-bg-alt: #f9f9f9;
5252

5353
--vp-font-family-mono: theme('fontFamily.mono');
@@ -56,8 +56,8 @@
5656
.dark {
5757
--vp-c-brand-1: #6fcce1;
5858
--vp-c-brand-2: #60c4db;
59-
--vp-c-brand-3: #3AB9D4;
60-
--vp-c-brand-soft: #3AB9D450;
59+
--vp-c-brand-3: #3ab9d4;
60+
--vp-c-brand-soft: #3ab9d450;
6161
--vp-c-bg-alt: #18181b;
6262
--vp-c-gutter: #8883;
6363
}

0 commit comments

Comments
 (0)