This commit is contained in:
parent
fc6a086ca2
commit
91e0f9264f
@ -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")"
|
||||
|
||||
@ -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
|
||||

|
||||
- Stabilisatie tot hellingshoek 5 graden (REQ-S-2[SH] in PvE)
|
||||
|
||||
### Integratie validatie
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user