Skip to content

Commit a9999de

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

File tree

6 files changed

+135
-4
lines changed

6 files changed

+135
-4
lines changed

.vitepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { DefaultTheme } from 'vitepress'
22
import { defineConfig } from 'vitepress'
33
import { transformerTwoslash } from '@shikijs/vitepress-twoslash'
44

5-
const CURRENT_VERSION = '0.48.0-beta.2'
5+
const CURRENT_VERSION = '0.48.0-beta.22'
66

77
const Guide: DefaultTheme.NavItemWithLink[] = [
88
{

.vitepress/theme/components/LandingPage.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99
Presentation Slides for Developers
1010
</h2>
1111
<div flex="~ gap-3 justify-center" p4 mt-5>
12+
<<<<<<< HEAD
1213
<a href="/guide/" class="bg-$vp-c-brand-3 text-white px5 py3 text-xl font-bold rounded-xl hover:bg-$vp-c-brand-1">Ξεκινήστε</a>
1314
<a href="/guide/why" class="bg-$vp-c-gray-1 text-white px5 py3 text-xl font-bold rounded-2xl hover:bg-$vp-c-brand-1">Γιατί</a>
15+
=======
16+
<a href="/guide/" class="bg-$vp-c-brand-3 text-white! no-underline! px5 py3 text-xl font-bold rounded-xl hover:bg-$vp-c-brand-1">Get Started</a>
17+
<a href="/guide/why" class="bg-$vp-c-gray-1 text-white! no-underline! px5 py3 text-xl font-bold rounded-2xl hover:bg-$vp-c-brand-1">Why</a>
18+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
1419
</div>
1520
</div>
1621
<div flex>

custom/config-monaco.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default defineMonacoSetup(async (monaco) => {
1919
Για να χρησιμοποιήσετε το Monaco στις διαφάνειές σας, απλά προσθέστε `{monaco}` στα αποσπάσματα του κώδικά σας:
2020

2121
~~~md
22-
```js
22+
```js {monaco} // [!code ++]
2323
const count = ref(1)
2424
const plusOne = computed(() => count.value + 1)
2525

@@ -29,6 +29,7 @@ plusOne.value++ // error
2929
```
3030
~~~
3131

32+
<<<<<<< HEAD
3233
Σε
3334

3435
~~~md
@@ -53,6 +54,9 @@ monaco: true # προεπιλεγμένο "dev"
5354
```
5455

5556
## Αυτόματη Εγκατάσταση Τύπων
57+
=======
58+
## TypeScript Types
59+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
5660
5761
Όταν χρησιμοποιείτε TypeScript με το Monaco, οι τύποι εξαρτήσεων θα εγκατασταθούν αυτόματα στο client-side.
5862

@@ -65,10 +69,39 @@ const counter = ref(0)
6569
```
6670
~~~
6771

72+
<<<<<<< HEAD
6873
Στο παραπάνω παράδειγμα, βεβαιωθείτε ότι τα `vue` και `@vueuse/core` είναι εγκατεστημένα τοπικά ως dependencies / devDependencies, το Slidev θα αναλάβει τα υπόλοιπα, ώστε οι τύποι να λειτουργούν αυτόματα για τον συντάκτη!
74+
=======
75+
In the example above, make sure `vue` and `@vueuse/core` are installed locally as dependencies / devDependencies, Slidev will handle the rest to get the types working for the editor automatically. When deploy as SPA, those types will also be bundled for static hosting.
76+
77+
### Additional Types
78+
79+
Slidev will scan all the monaco codeblocks in your slides and import the types for those used libraries for you. In case it missed some, you can explicitly specify extra packages to import the types for:
80+
81+
```md
82+
---
83+
monacoTypesAdditionalPackages:
84+
- lodash-es
85+
- foo
86+
---
87+
```
88+
89+
### Auto Type Acquisition
90+
91+
You can optionally switch to load types from CDN by setting the following headmatter:
92+
93+
```md
94+
---
95+
monacoTypesSource: ata
96+
---
97+
```
98+
99+
This feature is powered by [`@typescript/ata`](https://github.com/microsoft/TypeScript-Website/tree/v2/packages/ata) and runs completely on the client-side.
100+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
69101
70102
## Ρύθμιση Θεμάτων
71103

104+
<<<<<<< HEAD
72105
Το θέμα ελέγχεται από το Slidev με βάση το φωτεινό/σκοτεινό θέμα. Αν θέλετε να το προσαρμόσετε, μπορείτε να περάσετε το id του θέματος στη συνάρτηση setup:
73106

74107
```ts
@@ -108,6 +141,9 @@ export default defineMonacoSetup((monaco) => {
108141
```
109142

110143
> Εάν δημιουργείτε ένα θέμα για το Slidev, χρησιμοποιήστε δυναμικά `import()` μέσα στη συνάρτηση setup για να έχετε καλύτερα αποτελέσματα σε tree-shaking και code-splitting.
144+
=======
145+
Since v0.48.0, Monaco will reuse the Shiki theme you configured in [Shiki's setup file](/custom/highlighters#configure-shiki), powered by [`@shikijs/monaco`](https://shiki.style/packages/monaco). You don't need to worry about it anymore and it will have a consistent style with the rest of your code blocks.
146+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
111147
112148
## Ρύθμιση του Συντάκτη
113149

@@ -135,3 +171,13 @@ export default defineMonacoSetup(() => {
135171
}
136172
})
137173
```
174+
175+
## Disabling
176+
177+
Since v0.48.0, Monaco editor is enabled by default and only be bundled when you use it. If you want to disable it, you can set `monaco` to `false` in the frontmatter of your slide:
178+
179+
```yaml
180+
---
181+
monaco: false # can also be `dev` or `build` tp conditionally enable it
182+
---
183+
```

guide/animations.md

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ clicks: 10
239239
Για παράδειγμα, μπορείτε να επιτύχετε τις μεταβάσεις κλιμάκωσης προς τα πάνω με:
240240

241241
```css
242-
// styles.css
242+
/* styles.css */
243243

244244
.slidev-vclick-target {
245245
transition: all 500ms ease;
@@ -267,7 +267,47 @@ clicks: 10
267267

268268
Μάθετε περισσότερα για την [προσαρμογή των styles](/custom/directory-structure#style).
269269

270+
<<<<<<< HEAD
270271
## Κίνηση
272+
=======
273+
## Rough Markers
274+
275+
> Available since v0.48.0
276+
277+
Slidev integrates [Rough Notation](https://github.com/linkstrifer/react-rough-notation) to allow marking or highlighting elements in your slides.
278+
279+
### `v-mark`
280+
281+
Rough Notation integrates comes with the `v-mark` directive.
282+
283+
#### Type
284+
285+
`v-mark.underline` for Underline mark, `v-mark.circle` for Circle mark, etc. Default to `underline`
286+
287+
#### Color
288+
289+
`v-mark.red` make the notation `red`. Supported builtin color themes from UnoCSS. For custom colors, use object syntax `v-mark="{ color: '#234' }"`
290+
291+
#### Clicks
292+
293+
`v-mark` works like `v-click` and will trigger after a click. Same as `v-click`, it allows you to pass a custom click value, like `v-mark="5"` or `v-mark="'+1'"`.
294+
295+
#### Options
296+
297+
Optionally you can pass an object to `v-mark` to specify the options, for example:
298+
299+
```vue
300+
<span v-mark="{ at: 5, color: '#234', type: 'circle' }">
301+
Important text
302+
</span>
303+
```
304+
305+
#### Preview
306+
307+
<video src="https://github.com/slidevjs/slidev/assets/11247099/c840340c-0aa1-4cde-b228-e6c67e5f6879" rounded-lg shadow controls></video>
308+
309+
## Motion
310+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
271311
272312
Το Slidev έχει ενσωματωμένο το [@vueuse/motion](https://motion.vueuse.org/). Μπορείτε να χρησιμοποιήσετε την οδηγία `v-motion` σε οποιαδήποτε στοιχεία για να εφαρμόσετε κίνηση σε αυτά. Για παράδειγμα
273313

guide/syntax.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,14 @@ function add(
124124
```
125125
~~~
126126

127+
<<<<<<< HEAD
127128
Μπορείτε να ενεργοποιήσετε τον αριθμό γραμμής σε όλες τις διαφάνειες θέτοντας τη ρύθμιση `lineNumbers: true` στο config ή να το ενεργοποιήσετε σε κάθε μπλοκ κώδικα ξεχωριστά θέτοντας τη ρύθμιση `lines:true`. Μπορείτε επίσης να ορίσετε τη γραμμή έναρξης για κάθε code block και να επισημάνετε τις γραμμές ανάλογα, με προεπιλογή 1:
129+
=======
130+
You can enable line number to all slides by setting `lineNumbers: true` on the config or enable each code block individually by setting `lines: true`. You can also set the starting line for each code block and highlight the lines accordingly, defaults to 1:
131+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
128132
129133
~~~md
130-
```ts {6,7}{lines:true, startLine:5}
134+
```ts {6,7}{lines:true,startLine:5}
131135
function add(
132136
a: Ref<number> | number,
133137
b: Ref<number> | number
@@ -219,12 +223,17 @@ const count = ref(0)
219223

220224
> Διαθέσιμο από v0.48
221225
226+
<<<<<<< HEAD
222227
Το Shiki Magic Move σας επιτρέπει να έχετε λεπτομερή μετάβαση μεταξύ των αλλαγών κώδικα όπως το Magic Move του Keynote. Μπορείτε να παρακολουθήσετε [αυτό το demo](https://shiki-magic-move.netlify.app/) για να δείτε πώς λειτουργεί.
228+
=======
229+
[Shiki Magic Move](https://github.com/shikijs/shiki-magic-move) enables you to have granular transition between code changes, similar to Keynote's Magic Move. You can check [the playground](https://shiki-magic-move.netlify.app/) to see how it works.
230+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
223231
224232
Στο Slidev, το συνδέουμε με το [σύστημα clicks](/guide/animations#κινησεις-click). Η σύνταξη είναι να τυλίξετε πολλαπλά μπλοκ κώδικα που αντιπροσωπεύουν κάθε βήμα με <code>````md magic-move</code> (προσέξτε ότι είναι **4** backticks), αυτό θα μετατραπεί σε ένα μπλοκ κώδικα, που μεταμορφώνεται σε κάθε βήμα καθώς κάνετε click.
225233

226234
~~~~md
227235
````md magic-move
236+
<<<<<<< HEAD
228237
```ts
229238
console.log(`Βήμα ${1}`)
230239
```
@@ -233,6 +242,36 @@ console.log(`Βήμα ${1 + 1}`)
233242
```
234243
```ts
235244
console.log(`Βήμα ${3}`)
245+
=======
246+
```js
247+
console.log(`Step ${1}`)
248+
```
249+
```js
250+
console.log(`Step ${1 + 1}`)
251+
```
252+
```ts
253+
console.log(`Step ${3}` as string)
254+
```
255+
````
256+
~~~~
257+
258+
It's also possible mix Magic Move with [line highlighting](#line-highlighting), for example:
259+
260+
~~~~md
261+
````md magic-move {at:4} // [!code hl]
262+
```js {*|1|2-5} // [!code hl]
263+
let count = 1
264+
function add() {
265+
count++
266+
}
267+
```
268+
269+
Non-code blocks in between as ignored, you can put some comments.
270+
271+
```js
272+
let count = 1
273+
const add = () => count += 1
274+
>>>>>>> 4ee072e055e04965fad621e5941c6905ef2a2be0
236275
```
237276
````
238277
~~~~

index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
layout: home
3+
markdownStyles: false
34
---
45

56
<LandingPage />

0 commit comments

Comments
 (0)