trying something different 2

merge-requests/131/head
nr0q 2021-09-21 14:38:56 -05:00
rodzic a0804fd69b
commit 9c68dc0a0e
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -81,11 +81,11 @@ build-userguide:
# get the wiki and convert it
- |
git clone https://gitlab-ci-token:${CI_BUILD_TOKEN}@gitlab.com/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}.wiki.git
cd ${CI_PROJECT_NAME}.wiki
## Because we use /img for our images, need to make them "visible" to the pdf conversion step
find ./gridtracker.wiki/ -name '*.md' -type f -print0 | xargs -0 sed -E -i 's,(!\[.*])\(/img/,\1(/builds/gridtracker.org/gridtracker/gridtracker.wiki/img/,g'
# cd ./gridtracker.wiki/img/; pwd; cd ../..
find . -name '*.md' -type f -print0 | xargs -0 sed -E -i 's,(!\[.*])\(/img/,\1(img/,g'
## Now let's make a pdf
gwtc --verbose --toc gridtracker.wiki/Home.md --toctitle "GridTracker User's Guide" --logo-img gridtracker.wiki/img/GridTracker_logo.png --format all --output artifacts/docs/ --pdf-page-count gridtracker.wiki
gwtc --verbose --toc Home.md --toctitle "GridTracker User's Guide" --logo-img img/GridTracker_logo.png --format all --output ../artifacts/docs/ --pdf-page-count .
# package binaries and create build artifacts that may be used in later stages
win-packaging: