From a8aa596f3e33e8eb06296f78ab23e41a5cac2871 Mon Sep 17 00:00:00 2001 From: lonkaars Date: Thu, 17 Nov 2022 18:18:16 +0100 Subject: add makefile for generating semi-pretty pdf's from markdown using chrome --- .gitignore | 10 ++++++++-- confui/makefile | 2 +- docs/gen/end.html | 2 ++ docs/gen/start.m4 | 8 ++++++++ docs/gen/style.css | 45 +++++++++++++++++++++++++++++++++++++++++++++ docs/readme.md | 5 +++++ 6 files changed, 69 insertions(+), 3 deletions(-) create mode 100644 docs/gen/end.html create mode 100644 docs/gen/start.m4 create mode 100644 docs/gen/style.css create mode 100644 docs/readme.md diff --git a/.gitignore b/.gitignore index 2806e96..633f655 100644 --- a/.gitignore +++ b/.gitignore @@ -8,5 +8,11 @@ copyright/ temp/ -# bts -bts/bts +# confui +confui/confui + +# docs +docs/gen/paged.polyfill.js +docs/gen/start.html +docs/makefile +docs/*.html diff --git a/confui/makefile b/confui/makefile index e646524..78301cb 100644 --- a/confui/makefile +++ b/confui/makefile @@ -3,7 +3,7 @@ LD = gcc RM = rm -f CFLAGS = LFLAGS = -TARGET = bts +TARGET = confui SRCS := $(wildcard *.c) OBJS := $(patsubst %.c,%.o, $(SRCS)) diff --git a/docs/gen/end.html b/docs/gen/end.html new file mode 100644 index 0000000..308b1d0 --- /dev/null +++ b/docs/gen/end.html @@ -0,0 +1,2 @@ + + diff --git a/docs/gen/start.m4 b/docs/gen/start.m4 new file mode 100644 index 0000000..f714588 --- /dev/null +++ b/docs/gen/start.m4 @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/docs/gen/style.css b/docs/gen/style.css new file mode 100644 index 0000000..74795e4 --- /dev/null +++ b/docs/gen/style.css @@ -0,0 +1,45 @@ +@media print { + @page { + size: A4; + margin: 1in; + + @bottom-center { + content: counter(page); + } + } + html, body { + width: 100%; + margin: 0; + padding: 0; + overflow: visible; + + font-family: "TeX Gyre Schola"; + font-size: 11pt; + } + + pre, code { + font-family: "JetBrainsMono Nerd Font"; + font-size: 9pt; + } + + figure { + text-align: center; + } + + figcaption { + text-align: justify; + text-justify: auto; + } + + table { + border-collapse: collapse; + } + + th, td { + padding: 2pt 6pt; + } + + th { + border-bottom: 1pt solid black; + } +} diff --git a/docs/readme.md b/docs/readme.md new file mode 100644 index 0000000..720672c --- /dev/null +++ b/docs/readme.md @@ -0,0 +1,5 @@ +# docs + +this folder contains project documentation in markdown format. these documents +can be compiled to html using the makefile in this folder. + -- cgit v1.2.3