.gitlab-ci.yml 1.67 KB
Newer Older
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
1
2
3
4
5
6
7
8
9
10
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 
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
11
    - ls
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
12
13
14
15
16
  artifacts:
    paths:
      - data


Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
17
prod_pdfs:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
18
  image: jtr0/latex-pandoc
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
19
  stage: .post
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
20
21
22
  only:
    - main
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
23
24
25
26
27
28
29
30
    - ls
    - cp -r docs data/docs
    - cp -r data/docs/imgs imgs
    - pandoc -v
    - 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
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
31
32
33
34
  artifacts:
    paths:
      - public

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
35
pages:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
36
  image: jtr0/mkdocs-material:prod
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
37
38
39
  stage: deploy
  only:
    - main
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
40
    
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
41
  script:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
42
    - mkdocs build --verbose --site-dir public --no-directory-urls 
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
43

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