Commit 707941f6 authored by Andreas Böttger's avatar Andreas Böttger 😬
Browse files

Update .gitlab-ci.yml

parent f159615a
Pipeline #33332 passed with stages
in 3 minutes and 22 seconds
......@@ -106,7 +106,14 @@ build_pages:
- ./templates/reader
- ./templates/studyreader
script:
- (grep -rlP '\.\.\/abb\/' ./_raw/book || true) | xargs -I% perl -i -pe 's/(\().*?(abb)/$1\/static\/reader\/$2/gm' %
- |
(
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/book || true)
while read line; do
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
perl -pe 's!(\().*?(abb)!$1/static/reader/$ENV{"lang"}/$2!gm' $line
done <<<$file_list
)
- |
(
cd ./_raw/book;
......@@ -121,7 +128,14 @@ build_pages:
gitbook build
)
- mv ./_raw/book/_book ./templates/reader
- (grep -rlP '\.\.\/abb\/' ./_raw/study-book/ || true) | xargs -I% perl -i -pe 's/(\().*?(abb)/$1\/static\/studyreader\/$2/gm' %
- |
(
file_list=$(grep -rlP '\.\.\/abb\/' ./_raw/study-book || true)
while read line; do
export lang="$(echo "$line" | perl -pe 's!.*\/(de|en|fa|ar)\/.*!\1!g')"
perl -pe 's!(\().*?(abb)!$1/static/studyreader/$ENV{"lang"}/$2!gm' $line
done <<<$file_list
)
- |
(
cd ./_raw/study-book;
......
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