-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (46 loc) · 1.49 KB
/
pandoc.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build Guidelines with pandoc
on: push
jobs:
convert_to_html:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: docker://sbsdev/pandoc-texlive
with:
args: >-
--standalone
--from markdown
--to html
--output=nordic_guidelines_epub3-2020-1.html
--toc
--toc-depth=4
--shift-heading-level-by=-1
--number-sections
--template=guidelines/doc_tools/template-html.html
-V current_date="$(date +%Y-%m-%d%n)"
guidelines/guidelines.md guidelines/doc_tools/metadata.yaml
- uses: actions/upload-artifact@v2
with:
name: nordic_guidelines_epub3-2020-1.html
path: nordic_guidelines_epub3-2020-1.html
convert_to_pdf:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- uses: docker://sbsdev/pandoc-texlive
with:
args: >-
--from markdown
--to pdf
--output=nordic_guidelines_epub3-2020-1.pdf
--toc
--toc-depth=4
--shift-heading-level-by=-1
--number-sections
--template=guidelines/doc_tools/template-latex.tex
--pdf-engine=xelatex
guidelines/guidelines.md guidelines/doc_tools/metadata.yaml
- uses: actions/upload-artifact@v2
with:
name: nordic_guidelines_epub3-2020-1.pdf
path: nordic_guidelines_epub3-2020-1.pdf