diff --git a/docs/.vitepress/addons.ts b/docs/.vitepress/addons.ts index 7864ae8d11..39af81b58b 100644 --- a/docs/.vitepress/addons.ts +++ b/docs/.vitepress/addons.ts @@ -8,6 +8,7 @@ export const official: AddonInfo[] = [ link: '#', name: 'Work in Progress', description: '', + tags: [], author: { name: '', }, @@ -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', diff --git a/docs/features/click-marker.md b/docs/features/click-marker.md index a33e70e869..b46211c5a0 100644 --- a/docs/features/click-marker.md +++ b/docs/features/click-marker.md @@ -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 + +``` + +Slidev divides the content between the click markers and highlights it in presenter notes, synchronized with your slide progress. diff --git a/docs/package.json b/docs/package.json index 14349896d8..9abd08802a 100644 --- a/docs/package.json +++ b/docs/package.json @@ -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": { diff --git a/package.json b/package.json index 1b0930386a..6c34cc3883 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/packages/client/layouts/error.vue b/packages/client/layouts/error.vue index 78e562414a..f2ed1a4cc4 100644 --- a/packages/client/layouts/error.vue +++ b/packages/client/layouts/error.vue @@ -1,5 +1,9 @@ diff --git a/packages/client/package.json b/packages/client/package.json index ac11c58d3e..6b81caddf4 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -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 ", "license": "MIT", diff --git a/packages/client/uno.config.ts b/packages/client/uno.config.ts index 68ca00e662..ed24c308ba 100644 --- a/packages/client/uno.config.ts +++ b/packages/client/uno.config.ts @@ -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]', diff --git a/packages/create-app/package.json b/packages/create-app/package.json index 2f4e488d6c..1cf6103c01 100644 --- a/packages/create-app/package.json +++ b/packages/create-app/package.json @@ -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 ", "license": "MIT", diff --git a/packages/create-app/template/package.json b/packages/create-app/template/package.json index a0aa65aab6..7851eab8cd 100644 --- a/packages/create-app/template/package.json +++ b/packages/create-app/template/package.json @@ -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" diff --git a/packages/create-theme/package.json b/packages/create-theme/package.json index 9d715291cd..c272501163 100644 --- a/packages/create-theme/package.json +++ b/packages/create-theme/package.json @@ -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 ", "license": "MIT", diff --git a/packages/create-theme/template/package.json b/packages/create-theme/template/package.json index 63e396c4f7..7616551e39 100644 --- a/packages/create-theme/template/package.json +++ b/packages/create-theme/template/package.json @@ -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": { diff --git a/packages/parser/package.json b/packages/parser/package.json index c258878d35..8078a4eed2 100644 --- a/packages/parser/package.json +++ b/packages/parser/package.json @@ -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 ", "license": "MIT", diff --git a/packages/slidev/package.json b/packages/slidev/package.json index baa577c914..25562d2816 100644 --- a/packages/slidev/package.json +++ b/packages/slidev/package.json @@ -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 ", "license": "MIT", diff --git a/packages/types/package.json b/packages/types/package.json index a704027757..b458b76375 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -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 ", "license": "MIT", diff --git a/packages/vscode/package.json b/packages/vscode/package.json index dd3c92d1cb..1bc008b09f 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -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", diff --git a/packages/vscode/src/composables/useDevServer.ts b/packages/vscode/src/composables/useDevServer.ts index 8bb5a856c2..93f3578c06 100644 --- a/packages/vscode/src/composables/useDevServer.ts +++ b/packages/vscode/src/composables/useDevServer.ts @@ -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() {