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

Update .gitlab-ci.yml

parent 06d7e2da
Pipeline #33322 failed with stages
in 2 minutes and 20 seconds
......@@ -77,6 +77,7 @@ build_pages:
- ./templates/reader
- ./templates/studyreader
script:
- grep -rlP '\.\.\/abb\/' ./_raw/book | xargs -I% perl -pe 's/(\().*?(abb)/$1\/static\/reader\/$2/gm' %
- |
(
cd ./_raw/book;
......@@ -87,11 +88,11 @@ build_pages:
jq -r --arg pluginsConfig__downloadpdf_base "/${CI_PROJECT_PATH}/~${CI_COMMIT_REF_NAME}/book_pdf/book.pdf?/" '.pluginsConfig.downloadpdf.base |= $pluginsConfig__downloadpdf_base' book.json | sponge book.json;
fi;
if [ -f book.json ]; then cat book.json; fi;
grep -rlP '\.\.\/abb\/' . | xargs -I% perl -pe 's/(\().*?(abb)/$1\/static\/reader\/$2/gm' %
gitbook install;
gitbook build
)
- mv ./_raw/book/_book ./templates/reader
- grep -rlP '\.\.\/abb\/' ./_raw/study-book/_book | xargs -I% perl -pe 's/(\().*?(abb)/$1\/static\/studyreader\/$2/gm' %
- |
(
cd ./_raw/study-book;
......@@ -102,7 +103,6 @@ build_pages:
jq -r --arg pluginsConfig__downloadpdf_base "/${CI_PROJECT_PATH}/~${CI_COMMIT_REF_NAME}/book_pdf/book.pdf?/" '.pluginsConfig.downloadpdf.base |= $pluginsConfig__downloadpdf_base' book.json | sponge book.json;
fi;
if [ -f book.json ]; then cat book.json; fi;
grep -rlP '\.\.\/abb\/' . | xargs -I% perl -pe 's/(\().*?(abb)/$1\/static\/studyreader\/$2/gm' %
gitbook install;
gitbook build;
)
......
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