.gitlab-ci.yml 1.66 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
16
17

build_mkdocs:
  image: jtr0/mkdocs-material:dev
  stage: build 
  only:
    - main
  script:
    - pwd
    - ls
    - 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
21
22
23
build_pdfs:
  image: jtr0/latex-pandoc
  stage: build 
  only:
    - main
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
24
    - cp docs /data/docs
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
25
26
27
28
29
30
31
32
33
    - 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
34
pages:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
35
  image: jtr0/mkdocs-material:prod
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
36
37
38
  stage: deploy
  only:
    - main
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
39
    
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
40
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
41
    - mkdocs build --verbose --site-dir public --no-directory-urls 
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
42

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
43
44
45
  artifacts:
    paths:
      - public