Skip to content

Commit cffeb19

Browse files
committed
deploy/ci: render the cheat sheet as PDF and offer a link to it
The Cheat Sheet is quite useful, people might want to print it out... Suggested-by: Scott Chacon <[email protected]> Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 033f00c commit cffeb19

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/actions/deploy-to-github-pages/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,12 @@ runs:
8888
npm install node-html-parser &&
8989
node ./script/graphviz-ssr.js
9090
91+
- name: offer PDF version of the cheat sheet
92+
shell: bash
93+
run: |
94+
npm install @playwright/test &&
95+
node script/html-to-pdf.js -i public/cheat-sheet.html
96+
9197
- name: run Pagefind ${{ env.PAGEFIND_VERSION }} to build the search index
9298
shell: bash
9399
run: npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public --write-playground

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
npm install node-html-parser &&
3939
node ./script/graphviz-ssr.js
4040
41+
- name: Install @playwright/test
42+
run: npm install @playwright/test
43+
- name: offer PDF version of the cheat sheet
44+
run: node script/html-to-pdf.js -i public/cheat-sheet.html
45+
4146
- name: run Pagefind ${{ env.PAGEFIND_VERSION }} to build the search index
4247
run: npx -y pagefind@${{ env.PAGEFIND_VERSION }} --site public --write-playground
4348

@@ -83,8 +88,6 @@ jobs:
8388
output: lychee.md
8489
jobSummary: true
8590

86-
- name: Install @playwright/test
87-
run: npm install @playwright/test
8891
- name: Run Playwright tests
8992
id: playwright
9093
env:

0 commit comments

Comments
 (0)