.gitlab-ci.yml 1.65 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
  artifacts:
    paths:
      - data

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
16
17
18
pages:
  image: jtr0/mkdocs-material:prod
  stage: deploy
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
19
20
  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
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
31
generate_pdfs:
  image: jtr0/latex-pandoc
  stage: .post
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
36
    - ls
    - pwd
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
37
    - ls public/
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
38
    - ls data/
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
39
40
    - cp -r docs/imgs imgs
    - pandoc -v
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
41
42
43
    - 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 pdfs/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 pdfs/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 pdfs/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
44

Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
45
46
  artifacts:
    paths:
Jorge Tardío Rubio's avatar
Jorge Tardío Rubio committed
47
48
      - public/pdfs/