Pandoc readme to pdf

This commit is contained in:
Imbus 2024-12-14 16:01:12 +01:00
parent 5712d3f51d
commit 46a69e6e8e
3 changed files with 16 additions and 0 deletions

2
.gitignore vendored
View file

@ -1,5 +1,7 @@
*.o *.o
*.d *.d
*.log
*.pdf
*a.out* *a.out*
*.elf *.elf
build build

View file

@ -14,6 +14,14 @@ release:
watch: watch:
watchexec -e c,cc,cpp,h,hpp -- make -j$(nproc) watchexec -e c,cc,cpp,h,hpp -- make -j$(nproc)
# Produce a release PDF from readme
readme:
@# Requires pandoc pdflatex texlive-collection-fontsrecommended
pandoc --from=gfm --to=pdf -o README.pdf README.md
readme-podman:
podman run --rm --volume .:/data:Z docker.io/pandoc/latex --from=gfm --to=pdf README.md -o README.pdf
# Clean up # Clean up
clean: clean:
make clean make clean

6
README.md Normal file
View file

@ -0,0 +1,6 @@
# Title
abc
- Yes
- No