1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-29 04:07:32 +03:00

docs(website): add conversion to pdf to tips-and-tricks (#889)

* docs: add conversion to pdf to tips-and-tricks

* Update website/docs/tips-and-tricks.md

* Update website/docs/tips-and-tricks.md

---------

Co-authored-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
This commit is contained in:
ckrenslehner 2024-09-27 16:03:02 +02:00 committed by GitHub
parent dfe4459c5c
commit 58dc1087ed
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -90,3 +90,15 @@ commit_parsers = [
```jinja2
{{ get_env(name="CI_PROJECT_URL") }}/-/tags/{{ version }}
```
## Convert markdown output to PDF
```bash
pandoc --from=gfm --to=pdf -o CHANGELOG.pdf CHANGELOG.md
```
To support unicode characters, use `xelatex` as PDF engine and a font family which includes the needed unicode characters:
```bash
pandoc --from=gfm --to=pdf --pdf-engine=xelatex -o CHANGELOG.pdf CHANGELOG.md --variable mainfont="Segoe UI Emoji"
```