Skip to content

Commit 6647bf8

Browse files
committed
Fix CI issue with Chrome sandbox
1 parent 20e8cd1 commit 6647bf8

5 files changed

+15
-9
lines changed

.github/workflows/continuous-integration-workflow.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
wget -nv https://raw.githubusercontent.com/Lucas-C/dotfiles_and_notes/master/bin/md2html.js
3939
sudo apt install graphviz
4040
41-
- name: Generating HTML pages 🏗️
41+
- name: Generating HTML pages & PDF docs 🏗️
4242
run: |
4343
GIT_TAG=${{ steps.tag.outputs.version }}
4444
echo GIT_TAG=$GIT_TAG

BladesInTheDark/BitD-DeepCuts-NouvellesRegles.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<img src="BitD-DeepCuts-TitleNoBg-Black.png" class="size23">
1+
<img src="BitD-DeepCuts-TitleNoBg-Black.png" alt="Blades in the Dark - Deep Cuts" class="size23">
22

33
# Nouvelles règles
44
<br>
@@ -100,10 +100,12 @@ Discutez avec le MJ pour créer un projet à long terme (ou autre chose) pour su
100100
Le traumatisme de chaque personnage est personnel, et le chemin vers la guérison devrait l’être aussi.
101101

102102
<br><br>
103-
<img src="wesnoth-oracle1-cc-by-sa-greyscale.webp" class="size19">
104-
<p style="font-size: .9rem; text-align: center">
105-
<a href="https://wiki.wesnoth.org/Wesnoth:Copyrights#The_Battle_for_Wesnoth_-_Visual_and_Audio_Contributions">Oracle - Battle of Wesnoth<a> - <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a>
106-
</p>
103+
<figure>
104+
<img src="wesnoth-oracle1-cc-by-sa-greyscale.webp" alt="Blind character" class="size19">
105+
<figcaption>
106+
<a href="https://wiki.wesnoth.org/Wesnoth:Copyrights#The_Battle_for_Wesnoth_-_Visual_and_Audio_Contributions">Oracle - Battle of Wesnoth</a> - <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY-SA</a>
107+
</figcaption>
108+
</figure>
107109

108110
<!--
109111
## Équipement / Progression / Downtime / etc.

BladesInTheDark/BitD-LesBasesDeLaChasseAuLeviathan.md

-2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,4 @@ Et pourtant, malgré tous les dangers et les horreurs, les flottes de chasse ne
3333

3434
<style>
3535
body { font-size: 1.2rem; }
36-
figure { margin: 0 auto; }
37-
figcaption { font-size: .9rem; text-align: center; }
3836
</style>

BladesInTheDark/style.css

+2
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,8 @@ img.bg {
122122
min-height: 107%; /* ~ calc(100% + 2rem) */
123123
z-index: -1;
124124
}
125+
figure { margin: 0 auto; }
126+
figcaption { font-size: .9rem; text-align: center; }
125127

126128
table { margin: .5rem auto; border-style: hidden; page-break-inside: avoid; }
127129
th { font-weight: normal; }

puppeteer-print.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ const DEFAULT_MARGIN = 25;
88
const url = `file://${path.resolve(process.argv[2])}`
99
const outFilePath = process.argv[3]
1010
console.log(`${url} -> ${outFilePath}`)
11-
const browser = await puppeteer.launch({ headless: true })
11+
const browser = await puppeteer.launch({
12+
// Unsafe but else fails in Github Actions pipeline:
13+
args: ['--no-sandbox', '--disable-setuid-sandbox'],
14+
headless: true
15+
})
1216
try {
1317
const page = await browser.newPage()
1418
await page.goto(url, { waitUntil: 'networkidle2' })

0 commit comments

Comments
 (0)