Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
51 changes: 40 additions & 11 deletions .github/workflows/generate_pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,47 @@ name: CI
on: [push]

jobs:
build:
runs-on: ubuntu-latest
build-windows:
runs-on: windows-latest

steps:
- uses: actions/checkout@v4
- run: docker run --rm -v "$PWD:/gitbook" -p 4000:4000 billryan/gitbook gitbook init
- run: |
cd /home/runner/work/nelson-gitbook/nelson-gitbook
docker run --rm -v "$PWD:/gitbook" -p 4000:4000 billryan/gitbook gitbook pdf ./markdown
- run: mkdir /home/runner/work/nelson-gitbook/nelson-gitbook/artifacts
- run: cp /home/runner/work/nelson-gitbook/nelson-gitbook/*.pdf /home/runner/work/nelson-gitbook/nelson-gitbook/artifacts
- uses: actions/upload-artifact@v4

- name: Install tools via Chocolatey
run: |
Write-Host "Installing tools via Chocolatey..."

# Install Pandoc
choco install pandoc -y

# Install wkhtmltopdf
choco install wkhtmltopdf -y

# Install Inkscape
choco install inkscape -y

Write-Host "All tools installed successfully via Chocolatey"
shell: powershell

- name: Verify installations
run: |
Write-Host "Verifying Pandoc..."
pandoc --version

Write-Host "`nVerifying wkhtmltopdf..."
wkhtmltopdf --version

Write-Host "`nVerifying Inkscape..."
inkscape --version
shell: powershell

- name: Build PDF
run: |
.\pandoc-build-pdf.bat
shell: cmd

- name: Upload PDF artifacts
uses: actions/upload-artifact@v4
with:
name: nelson-gitbook-github-action-artifacts
path: artifacts/
name: nelson-pdf
path: "*.pdf"
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,8 @@ node_modules/
package-lock.json
book
docs/index.md
all_fr_files.txt
all_en_files.txt
temp_combined.md
nelson-en.pdf
nelson-fr.pdf
12 changes: 0 additions & 12 deletions book.toml

This file was deleted.

Loading