File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,19 @@ jobs:
1515 uses : actions/setup-node@v4
1616 with :
1717 node-version : ' 20'
18-
19- - name : Install markdown-pdf
20- run : npm install -g markdown-pdf
18+
19+ - name : Install dependencies
20+ run : npm install puppeteer markdown-it markdown-it -pdf
2121
2222 - name : Merge Markdown files
2323 run : |
2424 find doc -type f -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
2525 find doc -type f -name "*.md" ! -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
2626
2727 - name : Convert README.md to README.pdf
28- run : markdown-pdf README.md -o README.pdf
28+ run : |
29+ npx markdown-it README.md -o README.html
30+ npx puppeteer --headless --disable-gpu --print-to-pdf=README.pdf README.html
2931
3032 - name : Upload PDF
3133 uses : actions/upload-artifact@v4
You can’t perform that action at this time.
0 commit comments