Skip to content

Commit

Permalink
Merge branch 'main' into docs/add-slidev-addon-python-runner
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Dec 13, 2024
2 parents effb2c8 + 1b5b369 commit 63f5bd9
Show file tree
Hide file tree
Showing 16 changed files with 116 additions and 15 deletions.
78 changes: 78 additions & 0 deletions docs/.vitepress/addons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export const official: AddonInfo[] = [
link: '#',
name: 'Work in Progress',
description: '',
tags: [],
author: {
name: '',
},
Expand Down Expand Up @@ -37,6 +38,83 @@ export const community: AddonInfo[] = [
},
repo: 'https://github.com/AlbertBrand/slidev-addon-tldraw',
},
{
id: 'slidev-addon-sync',
name: 'slidev-addon-sync',
description: 'Sync component for Slidev static build that uses a SSE or WS server',
tags: ['Remote control', 'Navigation'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-addon-sync',
},
{
id: 'slidev-component-pager',
name: 'slidev-component-pager',
description: 'Show current page and total page number',
tags: ['Component', 'Navigation'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-pager',
},
{
id: 'slidev-component-poll',
name: 'slidev-component-poll',
description: 'Poll and Quiz components for Slidev',
tags: ['Component'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-poll',
},
{
id: 'slidev-component-progress',
name: 'slidev-component-progress',
description: 'Show interactive progress bar for Slidev',
tags: ['Tool', 'Navigation'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-progress',
},
{
id: 'slidev-component-scroll',
name: 'slidev-component-scroll',
description: 'Use mouse wheel for navigating',
tags: ['Navigation'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-scroll',
},
{
id: 'slidev-component-spotlight',
name: 'slidev-component-spotlight',
description: 'Activate a spotlight to highlight a specific region by holding a key',
tags: ['Tool'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-spotlight',
},
{
id: 'slidev-component-zoom',
name: 'slidev-component-zoom',
description: 'Allow zooming inside the slides',
tags: ['Tool'],
author: {
name: 'Tony Cabaye',
link: 'https://github.com/tonai',
},
repo: 'https://github.com/Smile-SA/slidev-component-zoom',
},
{
id: 'slidev-addon-rabbit',
name: 'slidev-addon-rabbit',
Expand Down
18 changes: 17 additions & 1 deletion docs/features/click-marker.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ description: |

# Click Markers

For some slides you might have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers in your notes for the timing you need to go to another [click](/guide/animations#click-animation), Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.
For some slides you may have longer notes that could be hard to find your place. Slidev supports click markers that allow highlighting and auto-scrolling to the section of notes from your corresponding content. Put `[click]` markers at the beginning of any line in your notes for the timing you need to go to another [click](/guide/animations#click-animation). You may skip `n` clicks by using `[click:{n+1}]`. For example:

```md
<!--
Content before the first click

[click] This will be highlighted after the first click

Also highlighted after the first click

- [click] This list element will be highlighted after the second click

[click:3] Last click (skip two clicks)
-->
```

Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress.

<video src="https://github.com/slidevjs/slidev/assets/11247099/40014e34-67cd-4830-8c8d-8431754a3672" controls rounded shadow w-full></video>
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "docs",
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"private": true,
"packageManager": "pnpm@9.14.4",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"private": true,
"packageManager": "pnpm@9.14.4",
"engines": {
Expand Down
6 changes: 5 additions & 1 deletion packages/client/layouts/error.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<template>
<div class="px-4 py-10 text-center text-red-700 dark:text-red-500 font-bold font-mono">
An error occurred on this slide. Check the terminal for more information.
{{
__SLIDEV_HAS_SERVER__
? 'An error occurred on this slide. Check the terminal for more information.'
: 'Failed to fetch this slide. Please check your network connection.'
}}
</div>
</template>
2 changes: 1 addition & 1 deletion packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@slidev/client",
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Presentation slides for developers",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
3 changes: 3 additions & 0 deletions packages/client/uno.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default defineConfig({
safelist: [
'!opacity-0',
'prose',
// See https://github.com/slidevjs/slidev/issues/1705
'grid-rows-[1fr_max-content]',
'grid-cols-[1fr_max-content]',
],
shortcuts: {
'bg-main': 'bg-white dark:bg-[#121212]',
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-slidev",
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Create starter template for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-app/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^0.50.0-beta.9",
"@slidev/cli": "^0.50.0-beta.10",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest",
"vue": "^3.5.13"
Expand Down
2 changes: 1 addition & 1 deletion packages/create-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-slidev-theme",
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Create starter theme template for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/create-theme/template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
"screenshot": "slidev export example.md --format png"
},
"dependencies": {
"@slidev/types": "^0.50.0-beta.9"
"@slidev/types": "^0.50.0-beta.10"
},
"devDependencies": {
"@slidev/cli": "^0.50.0-beta.9"
"@slidev/cli": "^0.50.0-beta.10"
},
"//": "Learn more: https://sli.dev/guide/write-theme.html",
"slidev": {
Expand Down
2 changes: 1 addition & 1 deletion packages/parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slidev/parser",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Markdown parser for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/slidev/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@slidev/cli",
"type": "module",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Presentation slides for developers",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@slidev/types",
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"description": "Shared types declarations for Slidev",
"author": "antfu <anthonyfu117@hotmail.com>",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Slidev",
"type": "module",
"preview": true,
"version": "0.50.0-beta.9",
"version": "0.50.0-beta.10",
"private": true,
"description": "Slidev support for VS Code",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/src/composables/useDevServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function useDevServer(project: SlidevProject) {
if (getIsActive())
return
port.value ??= await getPort()
sendText(`npm exec slidev -- --port ${port.value} ${JSON.stringify(basename(project.entry))}`)
sendText(`npm exec -c 'slidev ${JSON.stringify(basename(project.entry))} --port ${port.value}'`)
}

function stop() {
Expand Down

0 comments on commit 63f5bd9

Please sign in to comment.