Skip to content

Commit

Permalink
reformat to have proper rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
placek committed Sep 20, 2022
1 parent e9748f3 commit 5dfa8d7
Show file tree
Hide file tree
Showing 6 changed files with 497 additions and 9 deletions.
21 changes: 12 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
TARGET := result.pdf
INFO := pages/02-koine.pdf pages/03-500.pdf
VOLUME := pages/99-volume
PAGES := pages/00-title.pdf pages/01-title.pdf pages/blank.pdf $(INFO) $(VOLUME).pdf
.PHONY: clean edit

$(TARGET): $(PAGES)
target := result.pdf
articles := static/00-header.html static/01-koine.html static/02-j.html static/99-footer.html
pages := pages/00-title.pdf pages/01-info.pdf pages/02-blank.pdf pages/03-articles.pdf pages/99-volume.pdf

$(target): $(pages)
pdfunite $? $@

pages/%.pdf: pages/%.html
docker run --rm -v "`pwd`":/data michaelperrin/prince:latest -o /data/$@ /data/$<

$(VOLUME).html: build
pages/03-articles.html: $(articles)
cat $? > $@

pages/99-volume.html: build
cabal run > $@
@echo "FIXME: removing html entities with actual chars"
sed -i '1,4d' $@
Expand All @@ -21,9 +25,8 @@ $(VOLUME).html: build
build:
cabal build

edit: $(TARGET)
edit: $(target)
okular $?

.PHONY: clean
clean:
rm -rf $(VOLUME).html $(VOLUME).pdf $(INFO) $(TARGET)
rm -rf pages/99-volume.html pages/99-volume.pdf pages/03-articles.html pages/03-articles.pdf $(target)
Binary file removed pages/blank.pdf
Binary file not shown.
8 changes: 8 additions & 0 deletions static/00-header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="../styles/main.css">
<link rel="stylesheet" type="text/css" href="../styles/article.css">
<link rel="stylesheet" type="text/css" href="../styles/normalize.css">
</head>

<body>
Loading

0 comments on commit 5dfa8d7

Please sign in to comment.