From 46a69e6e8e3cf4e53cc756b1efe1bc447f837373 Mon Sep 17 00:00:00 2001 From: Imbus <> Date: Sat, 14 Dec 2024 16:01:12 +0100 Subject: [PATCH] Pandoc readme to pdf --- .gitignore | 2 ++ Justfile | 8 ++++++++ README.md | 6 ++++++ 3 files changed, 16 insertions(+) create mode 100644 README.md diff --git a/.gitignore b/.gitignore index 07414c0..79321d8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ *.o *.d +*.log +*.pdf *a.out* *.elf build diff --git a/Justfile b/Justfile index 0718f53..fbeb765 100644 --- a/Justfile +++ b/Justfile @@ -14,6 +14,14 @@ release: watch: 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: make clean diff --git a/README.md b/README.md new file mode 100644 index 0000000..407f792 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# Title + +abc + +- Yes + - No