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:
parent
dfe4459c5c
commit
58dc1087ed
@ -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"
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user