fix pva
Some checks failed
generate pdf files / build (push) Failing after 2m4s

This commit is contained in:
Laila van Reenen 2025-06-22 12:22:50 +02:00
parent fc6a086ca2
commit 91e0f9264f
Signed by: LailaTheElf
GPG Key ID: 8A3EF0226518C12D
2 changed files with 14 additions and 4 deletions

View File

@ -26,7 +26,17 @@ do
-e "s/^\!\[.*\]($src)\$/\`\`\`\\{.include\\}\n${src}\n\`\`\`/"
done
title="$(grep '^# ' "$MD_FILE" | head -l 1 | sed 's|^# ||')"
for line in $(grep '!\[.*\](https://.*\.png)' "$TEMP_MD_FILE" | sed 's/ /%20;/g')
do
src=$(echo "$line" | sed -e 's/^.*(//' -e 's/).*$//' -e 's/%20;/ /g')
echo "remote image found: $src"
mkdir -p "${BASE_DIR}/latex/images"
name=$(echo "$src" | sed -e 's|^.*/\([^/]*\)$|\1|')
curl "$src" > "${BASE_DIR}/latex/images/$name"
done
title="$(grep '^# ' "$MD_FILE" | head -n 1 | sed 's|^# ||')"
sed -i "$TEMP_MD_FILE" \
-e 's|\[toc\]|\\tableofcontents|' \
@ -34,7 +44,8 @@ sed -i "$TEMP_MD_FILE" \
-e 's|^# .*$||' \
-e 's|^#||' \
-e 's|^# |\\newpage\n# |' \
-e 's|\[\([^]]*\)\](#\([^)]*\))|[\1](#\L\2)|'
-e 's|\[\([^]]*\)\](#\([^)]*\))|[\1](#\L\2)|' \
-e 's|https://live.kladjes.nl/uploads|images|'
cd "$BUILD_DIR"
pandoc --lua-filter=../../converters/include-files.lua --to=latex --from=markdown+abbreviations --template "${BASE_DIR}/converters/template.latex" -o "$TEX_FILE" --data-dir="../../markdown" "$(basename "$TEMP_MD_FILE")"

View File

@ -445,8 +445,7 @@ Tijdens de statische validatie zal het voertuig gevalideerd worden op de statisc
- Aandrijving (REQ-W-4[MH] in PvE)
- Draaicirkel (REQ-W-8[MH] in PvE)
- Stabilisatie tot hellingshoek 5 graden
![](https://live.kladjes.nl/uploads/57f16c34-2566-4d48-a2f1-4892e1e89f56.png)
- Stabilisatie tot hellingshoek 5 graden (REQ-S-2[SH] in PvE)
### Integratie validatie