.gitlab-ci.yml 1.4 KB
Newer Older
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
build_pdfs:
  image: jtr0/latex-pandoc
  stage: build 
  only:
    - main
  script:
    - cp -r /data/docs/imgs /imgs
    - pandoc -N --template=eisvogel.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md  --pdf-engine=xelatex --toc -o /data/pdfs/eisvogel_template.pdf
    - pandoc -N --template=pandoc-scholar.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md  --pdf-engine=xelatex --toc -o /data/pdfs/pandoc-scholar_template.pdf
    - pandoc -N --template=default.latex --listings -V lang=en --from markdown --variable mainfont="DejaVuSerif" --variable sansfont="DejaVuSans" --variable monofont="DejaVuSansMono" --variable fontsize=12pt --variable version=2.0 /data/pdfs/pdf_metadata.md /data/site/docs.pdf.md  --pdf-engine=xelatex --toc -o /data/pdfs/default_template.pdf
    - mv /data/pdfs/ /public
  artifacts:
    paths:
      - public

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
16
pages:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
17
  image: jtr0/mkdocs-material:prod
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
18
19
20
  stage: deploy
  only:
    - main
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
21
    
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
22
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
23
    - mkdocs build --verbose --site-dir public --no-directory-urls 
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
24

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
25
26
27
  artifacts:
    paths:
      - public