.gitlab-ci.yml 1.59 KB
Newer Older
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
1
2
3
stages:
  - build
  - deploy
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
4
  - pdfs 
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
5

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
6
7
8
9
10
11
12
13
14
15
16
17
build_mkdocs:
  image: jtr0/mkdocs-material:dev
  stage: build 
  only:
    - main
  script:
    - mkdir data
    - mkdocs build --verbose --site-dir data --no-directory-urls 
  artifacts:
    paths:
      - data

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

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
29
30
generate_pdfs:
  image: jtr0/latex-pandoc
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
31
  stage: pdfs
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
32
33
  only:
    - main
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
34
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
35
    - mkdir public/pdfs/
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
36
    - cp -r docs/imgs imgs
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
37
38
39
    - 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 pdf_metadata.md data/docs.pdf.md  --pdf-engine=xelatex --toc -o public/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 pdf_metadata.md data/docs.pdf.md  --pdf-engine=xelatex --toc -o public/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 pdf_metadata.md data/docs.pdf.md  --pdf-engine=xelatex --toc -o public/pdfs/default_template.pdf
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
40
41
  artifacts:
    paths:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
42
43
      - public/pdfs/