Contains:
Using GitHub actions a rendering workflow may look like this:
name: Render notes to HTML and PDF
on:
push:
branches:
- master
- add-ci
workflow_dispatch:
jobs:
render:
runs-on: ubuntu-latest
container: thelurps/vimwiki-render:latest
steps:
- uses: actions/checkout@v2
- run: make
- uses: actions/upload-artifact@v2
with:
name: html
path: html/
- uses: actions/upload-artifact@v2
with:
name: pdf
path: pdf/
Makefile
MARKDOWN_FILES := $(shell find * -type f -name '*.md' -not -path 'templates/*' -not -path 'html/*' -not -path 'pdf/*')
PDF_FILES := $(addprefix pdf/,$(MARKDOWN_FILES:.md=.pdf))
HTML_FILES := $(addprefix html/,$(MARKDOWN_FILES:.md=.html))
default: html pdf
html: $(HTML_FILES)
html/%.html: %.md
nvim --headless +Vimwiki2HTML +qall $<
pdf: $(PDF_FILES)
pdf/%.pdf: %.md
mkdir -p $(shell dirname $@)
pandoc -t latex --template templates/eisvogel/eisvogel.tex --listings -o $@ $<
clean: html_clean pdf_clean
html_clean:
rm -rf html/
pdf_clean:
rm -rf pdf/
FORCE:
Content type
Image
Digest
Size
346.6 MB
Last updated
about 6 years ago
docker pull thelurps/vimwiki-render