Skip to content

Commit

Permalink
Update pdf.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zhimin-z authored Jul 15, 2024
1 parent 7e24f32 commit 7326428
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,12 @@ jobs:

# Install pandoc and xelatex
- name: Install dependencies
run: sudo apt-get install -y pandoc texlive-xetex
run: sudo apt-get install -y pandoc texlive-xetex texlive-fonts-recommended texlive-plain-generic

# Create directory for PDFs
- name: Create PDF directory
run: mkdir -p pdfs

# Fix YAML metadata issues
- name: Fix YAML metadata
run: |
find . -name "*.md" -exec sed -i '/^---$/!b;n;/^$/!b;n;/^---$/d;' {} \;
# Ensure images are present
- name: Ensure images are present
run: mkdir -p imgs && touch imgs/dummy.jpg
- name: Replace missing images
run: |
find . -name "*.md" -exec sed -i 's|imgs/|imgs/dummy.jpg|g' {} \;
# Concatenate all markdown files into a single file
- name: Concatenate markdown files
run: find . -name "*.md" -exec cat {} + > combined.md
Expand Down

0 comments on commit 7326428

Please sign in to comment.