Skip to content

Commit

Permalink
Provide downloadable slides
Browse files Browse the repository at this point in the history
Allow slides to be converted into a downloadable PDF. It was necessary
to add Playwright as this is the framework used to create screenshots
which can be combined into a PDF.

An option had to be provided to make sure slides that had click
transitions were correctly handled as individual pages.
  • Loading branch information
mikelorant committed Mar 20, 2024
1 parent a8e8cfe commit bfa4e42
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: yarn install

- name: Build
run: yarn run build --base /from-ticket-to-pull-request/
run: yarn run build --with-clicks --base /from-ticket-to-pull-request/

- uses: actions/configure-pages@v4

Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"build": "slidev build",
"dev": "slidev --open",
"export": "slidev export"
"export": "slidev export --with-clicks"
},
"dependencies": {
"@slidev/cli": "^0.48.3",
Expand All @@ -21,7 +21,8 @@
"@iconify-json/grommet-icons": "^1.1.10",
"@iconify-json/noto": "^1.1.18",
"@iconify-json/pajamas": "^1.1.40",
"@iconify-json/radix-icons": "^1.1.14"
"@iconify-json/radix-icons": "^1.1.14",
"playwright-chromium": "^1.42.1"
},
"packageManager": "[email protected]+sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781"
}
1 change: 1 addition & 0 deletions slides.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ fonts:
mono: JetBrains Mono
hideInToc: true
class: text-center
download: true
---

# From Ticket To Pull Request
Expand Down
21 changes: 21 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3879,6 +3879,7 @@ __metadata:
"@slidev/theme-apple-basic": "npm:^0.25.0"
"@slidev/theme-default": "npm:^0.25.0"
"@slidev/theme-seriph": "npm:^0.25.0"
playwright-chromium: "npm:^1.42.1"
languageName: unknown
linkType: soft

Expand Down Expand Up @@ -6094,6 +6095,26 @@ __metadata:
languageName: node
linkType: hard

"playwright-chromium@npm:^1.42.1":
version: 1.42.1
resolution: "playwright-chromium@npm:1.42.1"
dependencies:
playwright-core: "npm:1.42.1"
bin:
playwright: cli.js
checksum: 10c0/c6a959c470a985b50319901625b4d8888cd396452c5b3978023aa8ad1ebdfaae76f7ce6b28d89a4502908bd93f4ca2fb407934fe6f4e1cf76c573efeb450003d
languageName: node
linkType: hard

"playwright-core@npm:1.42.1":
version: 1.42.1
resolution: "playwright-core@npm:1.42.1"
bin:
playwright-core: cli.js
checksum: 10c0/9bb0be6defa32eb1b01429615f10c2ad17dcf701656c081a250369c1eb3b0dcc2a0ee21188cd653cdd2303ca73ff94df0d270b178fe3897eba274793dab368ce
languageName: node
linkType: hard

"points-on-curve@npm:0.2.0, points-on-curve@npm:^0.2.0":
version: 0.2.0
resolution: "points-on-curve@npm:0.2.0"
Expand Down

0 comments on commit bfa4e42

Please sign in to comment.