Skip to content

Commit 25201dc

Browse files
committed
Merge branch 'main' into feat/edit-frontmatter
2 parents 7d171cd + ca81faa commit 25201dc

Some content is hidden

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

42 files changed

+2037
-1634
lines changed

.github/workflows/cr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Continuous Releases provided by https://pkg.pr.new
2+
name: CR (Continuous Releases)
3+
on: [pull_request]
4+
5+
jobs:
6+
cr:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v2
12+
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: lts/*
16+
17+
- run: npm i -g @antfu/ni
18+
- run: nci
19+
20+
- name: Build
21+
run: nr build
22+
23+
- run: nlx pkg-pr-new publish './packages/create-app' './packages/client' './packages/create-theme' './packages/parser' './packages/slidev' './packages/types' --pnpm
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

demo/composable-vue/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
"export:clicks": "slidev export --with-clicks"
88
},
99
"devDependencies": {
10-
"@iconify-json/mdi": "^1.1.67",
11-
"@iconify-json/ri": "^1.1.21",
10+
"@iconify-json/mdi": "^1.1.68",
11+
"@iconify-json/ri": "^1.1.22",
1212
"@slidev/cli": "workspace:*",
1313
"@slidev/theme-default": "^0.25.0",
1414
"@slidev/theme-seriph": "^0.25.0",

demo/starter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@
1212
"@slidev/theme-default": "^0.25.0",
1313
"@slidev/theme-seriph": "^0.25.0",
1414
"nodemon": "^3.1.4",
15-
"vue": "^3.4.33"
15+
"vue": "^3.4.38"
1616
}
1717
}

demo/vue-runner/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"@slidev/cli": "workspace:*",
1111
"@slidev/theme-default": "^0.25.0",
1212
"@slidev/theme-seriph": "^0.25.0",
13-
"@vue/compiler-sfc": "^3.4.33",
13+
"@vue/compiler-sfc": "^3.4.38",
1414
"nodemon": "^3.1.4",
15-
"vue": "^3.4.33"
15+
"vue": "^3.4.38"
1616
}
1717
}

docs/builtin/cli.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To use the CLI, you can either install `@slidev/cli` globally or install it loca
1010
Usually `npx slidev` is not supported because the package name is actually `@slidev/cli`.
1111
:::
1212

13-
Options of the commands obey the following conventions:
13+
The CLI options of the commands obey the following conventions:
1414

1515
- the value of the option can be passed after a space or a `=` character:
1616

@@ -48,20 +48,20 @@ Options:
4848

4949
## `slidev build [entry]` {#build}
5050

51-
Build a hostable SPA. See [Hosting](../guide/hosting) for more details.
51+
Build a hostable SPA. See <LinkInline link="guide/hosting" /> for more details.
5252

5353
- `[entry]` (`string`, default: `slides.md`): path to the slides markdown file.
5454

5555
Options:
5656

5757
- `--out`, `-o` (`string`, default: `dist`): output directory
58-
- `--base` (`string`, default: `/`): base URL (see https://cli.vuejs.org/config/#publicpath)
58+
- `--base` (`string`, default: `/`): base URL (see https://vitejs.dev/config/shared-options.html#base)
5959
- `--download` (`boolean`, default: `false`): allow the download of the slides as a PDF inside the SPA
6060
- `--theme`, `-t` (`string`): override theme
6161

6262
## `slidev export [...entry]` {#export}
6363

64-
Export slides to PDF (or other format). See [Exporting](../guide/exporting) for more details.
64+
Export slides to PDF (or other format). See <LinkInline link="guide/exporting" /> for more details.
6565

6666
- `[entry]` (`string`, default: `slides.md`): path to the slides markdown entry.
6767

@@ -74,6 +74,7 @@ Options:
7474
- `--dark` (`boolean`, default: `false`): export as dark theme.
7575
- `--with-clicks`, `-c` (`boolean`, default: `false`): export pages for every click animation (see https://sli.dev/guide/animations.html#click-animation).
7676
- `--theme`, `-t` (`string`): override theme.
77+
- `--omit-background` (`boolean`, default: `false`): remove the default browser background
7778

7879
## `slidev format [entry]` {#format}
7980

docs/builtin/components.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Or:
2020
<Arrow v-bind="{ x1:10, y1:10, x2:200, y2:200 }" />
2121
```
2222

23-
Parameters:
23+
Props:
2424

2525
- `x1` (`string | number`, required): start point x position
2626
- `y1` (`string | number`, required): start point y position
@@ -38,7 +38,7 @@ An `Arrow` component that can be dragged.
3838

3939
<LinkCard link="features/draggable#draggable-arrow" />
4040

41-
Parameters not related to position are the same as [the `Arrow` component](#arrow).
41+
Props not related to position are the same as [the `Arrow` component](#arrow).
4242

4343
## `AutoFitText`
4444

@@ -52,7 +52,7 @@ Box inside which the font size will automatically adapt to fit the content. Simi
5252
<AutoFitText :max="200" :min="100" modelValue="Some text"/>
5353
```
5454

55-
Parameters:
55+
Props:
5656

5757
- `max` (`string | number`, default `100`): Maximum font size
5858
- `min` (`string | number`, default `30`): Minimum font size
@@ -115,7 +115,7 @@ Insert a link you can use to navigate to a given slide.
115115
<Link to="solutions" title="Go to solutions"/>
116116
```
117117

118-
Parameters:
118+
Props:
119119

120120
- `to` (`string | number`): The path of the slide to navigate to (slides path starts from `1`)
121121
- `title` (`string`): The title to display
@@ -146,7 +146,7 @@ Render slots depend on whether the context matches (for example whether we are i
146146

147147
Context type: `'main' | 'visible' | 'print' | 'slide' | 'overview' | 'presenter' | 'previewNext'`
148148

149-
Parameters:
149+
Props:
150150

151151
- `context` (`Context | Context[]`): a context or array of contexts you want to check for
152152
- `'main'`: Render in slides and presenter view (equivalent to ['slide', 'presenter']),
@@ -156,7 +156,6 @@ Parameters:
156156
- `'overview'`: Render in overview
157157
- `'presenter'`: Render in presenter view
158158
- `'previewNext'`: Render in presenter's next slide view
159-
- `'previewPrevious'`: Render in presenter's previous slide view
160159

161160
Slots:
162161

@@ -212,7 +211,7 @@ Then you can use it with:
212211
<TitleRenderer no="42" />
213212
```
214213

215-
Parameters:
214+
Props:
216215

217216
- `no` (`string | number`): The number of the slide to display the title from (slides starts from `1`)
218217

@@ -236,7 +235,7 @@ Titles are displayed using the [`<Titles>` component](#titles)
236235
<Toc />
237236
```
238237

239-
Parameters:
238+
Props:
240239

241240
- `columns` (`string | number`, default: `1`): The number of columns of the display
242241
- `listClass` (`string | string[]`, default: `''`): Classes to apply to the table of contents list
@@ -259,7 +258,7 @@ Apply scaling or transforming to elements.
259258
</Transform>
260259
```
261260

262-
Parameters:
261+
Props:
263262

264263
- `scale` (`number | string`, default `1`): transform scale value
265264
- `origin` (`string`, default `'top left'`): transform origin value
@@ -274,7 +273,7 @@ Embed a tweet.
274273
<Tweet id="20" />
275274
```
276275

277-
Parameters:
276+
Props:
278277

279278
- `id` (`number | string`, required): id of the tweet
280279
- `scale` (`number | string`, default `1`): transform scale value
@@ -319,7 +318,7 @@ Embed a video.
319318

320319
Check [HTML video element's doc](https://developer.mozilla.org/docs/Web/HTML/Element/Video) to see what can be included in this component's slot.
321320

322-
Parameters:
321+
Props:
323322

324323
- `controls` (`boolean`, default: `false`): show the video controls
325324
- `autoplay` (`boolean | 'once'`, default: `false`):
@@ -351,7 +350,7 @@ Embed a YouTube video.
351350
<Youtube id="luoMHjh-XcQ" />
352351
```
353352

354-
Parameters:
353+
Props:
355354

356355
- `id` (`string`, required): id of the YouTube video
357356
- `width` (`number`): width of the video

docs/custom/config-context-menu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default defineContextMenuSetup((items) => {
2424
...items.value,
2525
{
2626
small: false,
27-
icon: Icon3DCursor, // Used as `title` if `small` is `true`
27+
icon: Icon3DCursor, // if `small` is `true`, only the icon is shown
2828
label: 'Custom Menu Item', // or a Vue component
2929
action() {
3030
alert('Custom Menu Item Clicked!')

docs/custom/directory-structure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Styles will be processed by [UnoCSS](https://unocss.dev/) and [PostCSS](https://
6565

6666
<!-- eslint-skip -->
6767

68-
```less
68+
```css
6969
.slidev-layout {
7070
--uno: px-14 py-10 text-[1.1rem];
7171

0 commit comments

Comments
 (0)