summaryrefslogtreecommitdiff
path: root/markdown-to-pdf
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2023-10-31 19:40:35 +0200
committerLars Wirzenius <liw@liw.fi>2023-11-06 08:57:20 +0200
commitbfb56ad43fb63f46dc247e6d5382fdeb1e4772cd (patch)
treec5c382638c1c8989bd4e06eca64fc27a5b296a02 /markdown-to-pdf
parentca00525a42de0fc909becc68a677cd6a167a856d (diff)
downloadgtdfh.liw.fi-bfb56ad43fb63f46dc247e6d5382fdeb1e4772cd.tar.gz
rewrite the whole site
Signed-off-by: Lars Wirzenius <liw@liw.fi> Sponsored-by: author
Diffstat (limited to 'markdown-to-pdf')
-rwxr-xr-xmarkdown-to-pdf44
1 files changed, 0 insertions, 44 deletions
diff --git a/markdown-to-pdf b/markdown-to-pdf
deleted file mode 100755
index 732a456..0000000
--- a/markdown-to-pdf
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-set -e
-
-book_prelude()
-{
- cat <<eof
-<html>
-<head>
-<title>Book</title>
-<link rel="stylesheet" href="book.css" type="text/css" />
-</head>
-<body>
-eof
-}
-
-book_end()
-{
- cat <<eof
-</body>
-</html>
-eof
-}
-
-chapter()
-{
- cat <<eof
-<div class="chapter">
-eof
-
- markdown "$1"
-
- cat <<eof
-</div>
-eof
-}
-
-(book_prelude
-for f in "$@"
-do
- chapter "$f"
-done
-book_end) > book.html
-wkhtmltopdf book.html book.pdf