Skip to content

Commit

Permalink
NodeJS version bump to v18
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C committed May 13, 2024
1 parent b1f3910 commit ce89277
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 8 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/continuous-integration-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Set up NodeJS 🔧
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 18

- name: Install dependencies ⚙️
run: |
Expand All @@ -47,6 +47,7 @@ jobs:
node md2html.js index.md > index.html
node md2html.js LeDernierCafeSurLaGauche.md > LeDernierCafeSurLaGauche.html
echo "Rendering 2200_le_jugement_des_dieux"
cd 2200_le_jugement_des_dieux
node ../md2html.js 2200_le_jugement_des_dieux.md > index.html
node ../md2html.js 2200_the_gods_judgement.md > 2200_the_gods_judgement.html
Expand All @@ -55,6 +56,7 @@ jobs:
fi
cd -
echo "Rendering CheatYourOwnAdventure"
cd CheatYourOwnAdventure
node ../md2html.js CheatYourOwnAdventure.md > index.html
cd -
Expand All @@ -63,25 +65,29 @@ jobs:
mv CyberPunk/CyberPunk-FR.pdf $GIT_TAG.pdf
fi
echo "Rendering DungeonHeartHeroesAndSpells"
cd DungeonHeartHeroesAndSpells
node ../md2html.js DungeonHeartHeroesAndSpells.md > index.html
node ../md2html.js --lang=en DungeonHeartHeroesAndSpells_en.md > DungeonHeartHeroesAndSpells_en.html
cd -
echo "Rendering ce-nest-pas-une-place-dhonneur"
cd ce-nest-pas-une-place-dhonneur
node ../md2html.js ce-nest-pas-une-place-dhonneur.md > index.html
if [[ $GIT_TAG =~ ^ce-nest-pas-une-place-dhonneur ]]; then
node ../puppeteer-print.js index.html ../$GIT_TAG.pdf
fi
cd -
echo "Rendering chimera"
cd chimera
node ../md2html.js chimera.md > index.html
if [[ $GIT_TAG =~ ^chimera ]]; then
node ../puppeteer-print.js index.html ../$GIT_TAG.pdf
fi
cd -
echo "Rendering gdav"
cd gdav
node ../md2html.js --title='Amères Victoires & Glorieuses Défaites' gdav.md > index.html
if [[ $GIT_TAG =~ ^gdav- ]]; then
Expand All @@ -91,14 +97,17 @@ jobs:
fi
cd -
echo "Rendering genius-loci"
cd genius-loci
node ../md2html.js genius-loci.md > index.html
cd -
echo "Rendering latour"
cd latour
node ../md2html.js latour.md > index.html
cd -
echo "Rendering LesNonMorts"
cd LesNonMorts
node ../md2html.js --title='Les Non-morts' LesNonMorts.md > index.html
if [[ $GIT_TAG =~ ^LesNonMorts- ]]; then
Expand All @@ -107,6 +116,7 @@ jobs:
fi
cd -
echo "Rendering OriMushi"
cd OriMushi
node ../md2html.js OriMushi.md > index.html
# This line cannot stay in the HTML source file due to lepture/python-livereload PR #259:
Expand All @@ -118,21 +128,25 @@ jobs:
fi
cd -
echo "Rendering Pathfinder"
cd Pathfinder
./build_pdf.py
cd -
cd ParadisPerdu/
echo "Rendering ParadisPerdu"
cd ParadisPerdu
if [[ $GIT_TAG =~ ^ParadisPerdu-v ]]; then
sed -i "s/Version: [0-9].[0-9]/Version: ${GIT_TAG/ParadisPerdu-v/}/" README.md
fi
./adj2pdf.py
cd -
echo "Rendering plus-de-place-en-enfer"
cd plus-de-place-en-enfer
node ../md2html.js plus-de-place-en-enfer.md > index.html
cd -
echo "Rendering RunDieRepeat"
cd RunDieRepeat
node ../md2html.js RunDieRepeat-scenarios-FR.md > RunDieRepeat-scenarios-FR.html
if [[ $GIT_TAG =~ ^RunDieRepeat-scenarios- ]]; then
Expand All @@ -154,7 +168,8 @@ jobs:
fi
cd -
cd Sombre/
echo "Rendering Sombre"
cd Sombre
Terminatrice/Terminatrice-BehindTheDoors.py
Terminatrice/Terminatrice-OutOfReach.py
cd scenario/
Expand All @@ -167,10 +182,12 @@ jobs:
fi
cd ../..
echo "Rendering sous-terre"
cd sous-terre
node ../md2html.js sous-terre.md > index.html
cd -
echo "Rendering VengeanceFatale4D"
cd VengeanceFatale4D
node ../md2html.js VengeanceFatale4D.md > index.html
if [[ $GIT_TAG =~ ^VengeanceFatale4D ]]; then
Expand All @@ -179,6 +196,7 @@ jobs:
fi
cd -
echo "Rendering scavengers"
# Debugging ~~text~~ propert substitution into <s>text</s>:
node ./md2html.js dices.md > dices.html && cat dices.html
cd scavengers
Expand Down
4 changes: 2 additions & 2 deletions ParadisPerdu/ModulesDeSecours.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Paradis Perdu
# Modules de secours

<br><br><br>
<!--br><br><br>
<img class="large" alt="" src="">
<br><br>
<br><br-->

Ceci est une aide de jeu pour [Paradis Perdu](https://www.misterfrankenstein.com/wordpress/?p=5388), un excellent jeu de rôle « Nuit Blanche » d'Anthony "Yno" Combrexelles.
Il se compose d'un ensemble de modules optionnels, que vous pourrez adopter pour ajouter des rebondissements supplémentaires au scénario original. Ces modules m'ont également beaucoup aidé en tant que MJ pour préparer ma partie, et compléter quelques points non détaillés dans le jeu de base.
Expand Down
4 changes: 2 additions & 2 deletions pdf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ def markdown2pdf(dir, md_filepath, css_filepath):


def add_id_attrs_on_headings(html):
soup = BeautifulSoup(html, features="lxml")
soup = BeautifulSoup(html, features="html.parser")
for tag_name in ("h1", "h2", "h3", "h4"):
for heading in soup.find_all(tag_name):
heading["id"] = slugify(heading.string)
return str(soup)
return str(soup).replace("</img>", "")


def slugify(s):
Expand Down
2 changes: 1 addition & 1 deletion puppeteer-print.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const path = require('path');
const puppeteer = require('puppeteer')
const puppeteer = require('puppeteer');

(async () => {
const url = `file://${path.resolve(process.argv[2])}`
Expand Down

0 comments on commit ce89277

Please sign in to comment.