Skip to content

Treatment of e-book source files #49

Treatment of e-book source files

Treatment of e-book source files #49

Workflow file for this run

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