Skip to content

Commit

Permalink
add back full list of files
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmchiu committed Sep 6, 2024
1 parent 9e3b79d commit 06836c9
Showing 1 changed file with 44 additions and 4 deletions.
48 changes: 44 additions & 4 deletions .github/workflows/generate-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ jobs:
run: |
sudo apt-get install -y poppler-utils
- name: List files in _site
run: ls -l _site

- name: Convert HTML to PDF and merge them
run: |
site_folder="_site"
Expand All @@ -56,6 +53,49 @@ jobs:
"index.html"
"principles/index.html"
"principles/principles.html"
"memory-safety/index.html"
"memory-safety/x86.html"
"memory-safety/vulnerabilities.html"
"memory-safety/mitigations.html"
"crypto/index.html"
"crypto/intro.html"
"crypto/symmetric.html"
"crypto/hashes.html"
"crypto/macs.html"
"crypto/prng.html"
"crypto/key-exchange.html"
"crypto/public-key.html"
"crypto/signatures.html"
"crypto/certificates.html"
"crypto/passwords.html"
"crypto/case-studies.html"
"crypto/bitcoin.html"
"web/index.html"
"web/sqli.html"
"web/intro.html"
"web/sop.html"
"web/cookies.html"
"web/csrf.html"
"web/xss.html"
"web/ui-attacks.html"
"web/captchas.html"
"network/index.html"
"network/intro.html"
"network/arp.html"
"network/dhcp.html"
"network/wpa.html"
"network/bgp.html"
"network/transport.html"
"network/tls.html"
"network/dns.html"
"network/dnssec.html"
"network/dos.html"
"network/firewalls.html"
"network/intrusion-detection.html"
"network/abusing-instrusion-detection.html"
"network/malware.html"
"network/tor.html"
"glossary.html"
)
for html_file in "${file_list[@]}"; do
Expand All @@ -66,7 +106,7 @@ jobs:
if [ -f "$full_path" ]; then
echo "Generating PDF for $html_file"
google-chrome --headless --disable-gpu --disable-software-rasterizer --no-sandbox --no-pdf-header-footer --print-to-pdf="$output_pdf" "file://$PWD/$full_path"
google-chrome --headless --disable-gpu -no-pdf-header-footer --print-to-pdf="$output_pdf" "file://$PWD/$full_path"
else
echo "Error: File $full_path not found!" >&2
exit 1
Expand Down

0 comments on commit 06836c9

Please sign in to comment.