Skip to content

Commit

Permalink
Fix pkgdown build on GitHub Actions for new Ubuntu 24.04 runners (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancochrane authored Dec 17, 2024
1 parent 3797492 commit faa197b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ jobs:
- name: Prepare Mermaid assets for docs
run: |
for file in inst/mermaid/*.mmd; do
mmdc -i "$file" -o "${file/.mmd/.svg}"
# Confine the mermaid process to an AppArmor profile, necessary on
# Ubuntu >= 23.10 to work around new AppArmor rules that block the
# Puppeteer sandbox (used by mermaid) from working. See:
# https://github.com/mermaid-js/mermaid-cli/issues/730#issuecomment-2408615110
aa-exec --profile=chrome mmdc -i "$file" -o "${file/.mmd/.svg}"
done
mkdir -p docs/mermaid
mv inst/mermaid/*.svg docs/mermaid
Expand Down

0 comments on commit faa197b

Please sign in to comment.