From a6b3f5fd6169cf684f04c794883816a98c4083ee Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 May 2024 11:22:30 +0100 Subject: [PATCH] Build PDF --- .gitea/workflows/ci.yml | 2 ++ .gitignore | 1 + package-lock.json | 27 +++++++++++++++++++++++++++ package.json | 6 +++--- 4 files changed, 33 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index f41ea08..3578496 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,6 +4,8 @@ on: jobs: build: runs-on: ubuntu-latest + container: + image: mcr.microsoft.com/playwright:latest steps: - uses: actions/checkout@v4 - name: Set up Node diff --git a/.gitignore b/.gitignore index ceaea36..598fcf3 100644 --- a/.gitignore +++ b/.gitignore @@ -130,3 +130,4 @@ dist .yarn/install-state.gz .pnp.* +/slides-export.pdf diff --git a/package-lock.json b/package-lock.json index 6d17eb3..d91fade 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "@iconify-json/mdi": "^1.1.66", "@slidev/cli": "^0.48.8", "@slidev/theme-default": "latest", + "playwright-chromium": "^1.44.0", "slidev-addon-qrcode": "^1.0.2", "vue": "^3.4.21" } @@ -6644,6 +6645,32 @@ "resolved": "https://registry.npmjs.org/plantuml-encoder/-/plantuml-encoder-1.4.0.tgz", "integrity": "sha512-sxMwpDw/ySY1WB2CE3+IdMuEcWibJ72DDOsXLkSmEaSzwEUaYBT6DWgOfBiHGCux4q433X6+OEFWjlVqp7gL6g==" }, + "node_modules/playwright-chromium": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/playwright-chromium/-/playwright-chromium-1.44.0.tgz", + "integrity": "sha512-eae4op9jfzyybPfBOcS2o/EtrIT00OCBTLIA9EJz7sOfHwtUFY+H1XRTRdFD/j93tSS80uY8gyts+lX0zHYiHg==", + "hasInstallScript": true, + "dependencies": { + "playwright-core": "1.44.0" + }, + "bin": { + "playwright": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, + "node_modules/playwright-core": { + "version": "1.44.0", + "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.44.0.tgz", + "integrity": "sha512-ZTbkNpFfYcGWohvTTl+xewITm7EOuqIqex0c7dNZ+aXsbrLj0qI8XlGKfPpipjm0Wny/4Lt4CJsWJk1stVS5qQ==", + "bin": { + "playwright-core": "cli.js" + }, + "engines": { + "node": ">=16" + } + }, "node_modules/points-on-curve": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/points-on-curve/-/points-on-curve-0.2.0.tgz", diff --git a/package.json b/package.json index 7eb624c..b2f60a1 100644 --- a/package.json +++ b/package.json @@ -3,15 +3,15 @@ "type": "module", "private": true, "scripts": { - "build": "slidev build", - "start": "slidev", - "export": "slidev export" + "build": "slidev build --dark --download", + "start": "slidev" }, "dependencies": { "@iconify-json/logos": "^1.1.42", "@iconify-json/mdi": "^1.1.66", "@slidev/cli": "^0.48.8", "@slidev/theme-default": "latest", + "playwright-chromium": "^1.44.0", "slidev-addon-qrcode": "^1.0.2", "vue": "^3.4.21" }