Commit d35b4b96 authored by Maximilian Sprengholz's avatar Maximilian Sprengholz 😵
Browse files

test

parent c7ffcfe7
Pipeline #14863 passed with stages
in 35 seconds
......@@ -18,17 +18,14 @@ gen_docs:
stage: build
script:
- cd docs
- python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s])(.*)' '\1"Version <b>${CI_COMMIT_TAG}</b>"'
- python3 dep/regexrep.py 'appendix.md' 'subtitle:' 'subtitle:"Version <b>${CI_COMMIT_TAG}</b>"'
- python3 dep/regexrep.py 'appendix.md' '(date:[\s])(.*)' '\1"${DATE}"'
- pandoc --filter pandoc-include --filter pandoc-crossref --citeproc --bibliography=dep/appendix.bib --csl=dep/journal-of-family-research.csl --number-sections --table-of-contents -c dep/empty.css -H dep/vue_extended_h.css appendix.md -H dep/lightbox.js -s -o appendix.html
- cp appendix.html index.html
- python3 dep/regexrep.py 'index.html' '../results/figures' 'figures' # fix links for pages (though usually no problem with base64 encoded .svg)
- cd ../
- git config --global user.name "${GITLAB_USER_NAME}"
- git config --global user.email "${GITLAB_USER_EMAIL}"
- git add docs/appendix.md
- git add docs/appendix.html
- git add docs/index.html
- git commit -m "[ci skip] Built docs ${CI_COMMIT_TAG}" || echo "Nothing to commit."
- git push http://${GITLAB_USER_LOGIN}:${TOKEN}@scm.cms.hu-berlin.de/${CI_PROJECT_PATH} HEAD:${CI_COMMIT_REF_NAME}
only:
......@@ -42,6 +39,8 @@ pages:
- mkdir public
- cp -R -f results/figures/ public/ # copy figures
- cd docs
- cp appendix.html index.html
- python3 dep/regexrep.py 'index.html' '../results/figures' 'figures' # fix links for pages (though usually no problem with base64 encoded .svg)
- mv index.html ../public/ # copy index to update
artifacts:
paths:
......
---
title:
'Online Appendix: From "guestworkers" to EU migrants: A gendered view on the labor market integration of different arrival cohorts in Germany'
subtitle: "Version <b>${CI_COMMIT_TAG}</b>"
date: "${DATE}"
subtitle: "Version <b>1.2.0</b> XXX"
date: "2020-12-21"
titleDelim: .
figureTemplate: __$$figureTitle$$ $$i$$$$titleDelim$$__ $$t$$
subfigureTemplate: __$$figureTitle$$ $$i$$$$titleDelim$$__ $$t$$
......
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