Skip to content

Commit a072bab

Browse files
committed
Trying pageres for taking the screenshot
1 parent 79b5704 commit a072bab

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

.github/workflows/generate-mindmap.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,7 @@ jobs:
3131
- name: Run Markmap
3232
run: npx markmap --no-open --no-toolbar innersource-program-mind-map.md -o innersource-program-mind-map.html
3333
- name: Screenshot Markmap Website
34-
id: screenshot-generator
35-
uses: swinton/screenshot-website@main
36-
with:
37-
source: pattern-categorization/innersource-program-mind-map.html
38-
destination: innersource-program-mind-map.png
39-
full-page: false
40-
- name: Copy Screenshot
41-
run: cp ${{ steps.screenshot-generator.outputs.path }} .
34+
run: pageres innersource-program-mind-map.html --overwrite --filename=innersource-program-mind-map
4235
- name: Reduce Screenshot Size (PNG)
4336
run: npx optipng innersource-program-mind-map.png
4437
- name: Commit Changes
-236 KB
Loading

pattern-categorization/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
{
22
"name": "pattern-mindmap-generator",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"description": "Generate mindmap of the patterns in our book, using markmap.",
55
"dependencies": {
66
"markmap-cli": ">=0.13.3",
7-
"optipng-bin": "^9.0.0"
7+
"optipng-bin": "^9.0.0",
8+
-cli": "v9.0.0"
89
},
910
"scripts": {
1011
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)