Commit 55c9943e authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Update .gitlab-ci.yml

parent d097c276
Pipeline #33369 failed with stages
in 42 seconds
......@@ -134,23 +134,32 @@ build_pages:
if [ -f book.json ]; then cat book.json; fi;
gitbook install;
gitbook build;
)
(
# `gitbook build` bastelt aus einem absoluten Pfad einen relativen
grep -rlP '\.\.\/static\/' . || true) | while read -r line; do
if [ -n "$line" ]; then
echo "Processing $line"
perl -i -pe 's!\.\.(/static)!$1!gm' "$line"
fi
done
)
)
- rm -rf ./templates/studyreader
- mv ./_raw/study-book/_book ./templates/studyreader
- |
(
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
set -x
(grep -rlP '\.\.\/abb\/' ./_raw/book || true) | while read -r line; do
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
if [ -n "$line" ]; then
lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')";
export lang
echo "Processing $line"
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' "$line"
fi
done
)
(
# Language Verzeichnisse ermitteln und in den Pfad der Abbildungen integrieren
set -x
(grep -rlP '\.\.\/abb\/' ./_raw/book || true) | while read -r line; do
# NUR vier Sprachen werden berücksichtigt: de, en, fa, ar
if [ -n "$line" ]; then
lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')";
export lang
echo "Processing $line"
perl -i -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' "$line"
fi
done
)
- |
(
set -x
......@@ -164,6 +173,15 @@ build_pages:
if [ -f book.json ]; then cat book.json; fi;
gitbook install;
gitbook build
(
# `gitbook build` bastelt aus einem absoluten Pfad einen relativen
grep -rlP '\.\.\/static\/' . || true) | while read -r line; do
if [ -n "$line" ]; then
echo "Processing $line"
perl -i -pe 's!\.\.(/static)!$1!gm' "$line"
fi
done
)
)
- rm -rf ./templates/reader
- mv ./_raw/book/_book ./templates/reader
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment