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

pages test

parent f238829a
Pipeline #14839 failed
......@@ -18,14 +18,12 @@ gen_docs:
stage: build
script:
- cd docs
- "python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s][\S])\b.*$' 'subtitle: \"Version <b>${CI_COMMIT_TAG}</b>\"'"
- >-
python3 dep/regexrep.py 'appendix.md' '(subtitle:[\s][\S])\b.*$' 'subtitle: "Version <b>${CI_COMMIT_TAG}</b>"' # set version in yaml header of doc
- >-
python3 dep/regexrep.py 'appendix.md' '(date:[\s][\S])\b.*$' 'date: "${DATE}"' # set date in yaml header of doc
python3 dep/regexrep.py 'appendix.md' '(date:[\s][\S])\b.*$' 'date: "${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)
- python3 dep/regexrep.py 'index.html' 'PEANUTS' 'regex prob?' # fix links for pages (though usually no problem with base64 encoded .svg)
- mv index.html ../public/
- cd ../
- git config --global user.name "${GITLAB_USER_NAME}"
......@@ -44,6 +42,8 @@ gen_docs:
pages:
stage: deploy
script:
- rm -rf public
- mkdir public
- cp -R -f results/figures/ public/ # copy figures
- mv -f public/index.html public/ # copy index to update
artifacts:
......
python3 dep/regexrep.py 'index.html' 'PEANUTS' 'regex prob?'
# pandoc call
pandoc --filter pandoc-include --filter pandoc-crossref --citeproc --bibliography=appendix.bib --csl=journal-of-family-research.csl --number-sections --table-of-contents -c ../public/css/vue_extended.css appendix.md -s -o test.html
# pandoc --filter pandoc-include --filter pandoc-crossref --citeproc --bibliography=appendix.bib --csl=journal-of-family-research.csl --number-sections --table-of-contents -c ../public/css/vue_extended.css appendix.md -s -o test.html
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