From f1f200c4afcdeb1eb7e8e9a7a0b291e901370742 Mon Sep 17 00:00:00 2001 From: Liam Keegan Date: Mon, 15 Jun 2026 07:43:14 +0200 Subject: [PATCH] add qr code --- .github/workflows/slides.yml | 9 ++++++++- .gitignore | 1 + slides/index.md | 2 +- slides/ssc.css | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/slides.yml b/.github/workflows/slides.yml index 33f30e8..0145149 100644 --- a/.github/workflows/slides.yml +++ b/.github/workflows/slides.yml @@ -19,7 +19,14 @@ jobs: steps: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 - - run: npm install --global @marp-team/marp-cli + - run: npm install --global @marp-team/marp-cli qrcode + - name: Generate QR code + shell: bash + run: | + slides_url="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/" + qrcode --error Q --qzone 4 \ + --darkcolor 3a9ebfff --lightcolor 1f2a30ff \ + --output slides/qr.svg "${slides_url}" - run: marp slides/index.md -o slides/index.html - run: marp slides/index.md --pdf -o slides/slides.pdf - run: marp slides/index.md --image png -o slides/slides-thumb.png diff --git a/.gitignore b/.gitignore index 6431a17..c5056db 100644 --- a/.gitignore +++ b/.gitignore @@ -141,3 +141,4 @@ cython_debug/ slides/*.html slides/slides.pdf slides/slides-thumb.png +slides/qr.svg diff --git a/slides/index.md b/slides/index.md index b7dad6c..5e6d1eb 100644 --- a/slides/index.md +++ b/slides/index.md @@ -8,7 +8,7 @@ description: SSC Compact Course - + # Python Packaging diff --git a/slides/ssc.css b/slides/ssc.css index 5890876..4984c1e 100644 --- a/slides/ssc.css +++ b/slides/ssc.css @@ -147,6 +147,7 @@ section.subtitle strong { section.title { background: var(--ssc-title-logo) no-repeat top 50px right 60px / 500px auto, + url("qr.svg") no-repeat bottom 50px left 60px / 180px 180px, var(--ssc-blue-bar) var(--ssc-dark-bg); padding: 60px 90px 50px; }