Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ms609/pandocker
Docker image for pandoc with xelatex
https://github.com/ms609/pandocker
Last synced: 7 days ago
JSON representation
Docker image for pandoc with xelatex
- Host: GitHub
- URL: https://github.com/ms609/pandocker
- Owner: ms609
- Created: 2022-12-02T09:19:46.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-21T09:47:10.000Z (11 months ago)
- Last Synced: 2024-02-21T17:01:16.414Z (11 months ago)
- Language: Dockerfile
- Size: 22.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pandocker
Docker image for pandoc 3.1.12.1 with xelatex and citeproc plugins.
Renders markdown files to pdf and docx, using a docx template file for styles.# Usage
Create a file `.github/workflows/render-pandoc.yml`:
```yml
name: pandocon:
push:
paths:
- "**pandoc.yml"
- "**template.docx"
- "**.bib"
- "**.md"
- "!README.md"jobs:
pandoc-render:
name: Render documentsruns-on: ubuntu-22.04
container: ms609/pandocenv:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}steps:
- uses: actions/checkout@v4
- name: Render PDF
run: |
pandoc INPUT_FILENAME.md --pdf-engine=xelatex --citeproc \
-o OUTPUT_FILENAME.pdf- name: Render .docx
run: |
pandoc INPUT_FILENAME.md --reference-doc template.docx \
--citeproc -o OUTPUT_FILENAME.docx- name: Deploy
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
git ls-files
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add *.pdf *.docx
git commit -m "Render output files"
git fetch
git pull --ff-only
git push
```