From 9b3a705d4b0ac9100329528f19606520aa3fec39 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 23 Sep 2019 10:21:43 -0400 Subject: [PATCH 1/4] makefile pandoc magic --- .gitignore | 1 + Makefile | 19 +++++++++++++++++++ ...iving_into_the_depths_of_the_tildeverse.md | 2 ++ issues/1/metadata.yml | 1 + social_git.md => issues/1/social_git.md | 2 ++ .../1/you_wanna_make_a_tilde.md | 2 ++ 6 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile rename diving_into_the_depths_of_the_tildeverse.md => issues/1/diving_into_the_depths_of_the_tildeverse.md (99%) create mode 100644 issues/1/metadata.yml rename social_git.md => issues/1/social_git.md (99%) rename you_wanna_make_a_tilde.md => issues/1/you_wanna_make_a_tilde.md (99%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a136337 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.pdf diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..036ac76 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +ISSUES != find issues -type d +DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf) + +PANDOC != command -v pandoc 2> /dev/null + +all: $(DEST_PDF_FILES) + +issue-%.pdf: issues/% + $(PANDOC) \ + --file-scope \ + --from markdown \ + --to latex \ + --pdf-engine xelatex \ + --table-of-contents \ + --variable title:"tildeverse zine $@" \ + --standalone \ + --output $@ \ + $ Date: Mon, 23 Sep 2019 10:44:02 -0400 Subject: [PATCH 2/4] also generate html --- .gitignore | 1 + Makefile | 22 +++++++++++++++++++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index a136337..f4df0be 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *.pdf +*.html diff --git a/Makefile b/Makefile index 036ac76..72d3d04 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,10 @@ ISSUES != find issues -type d DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf) +DEST_HTML_FILES := $(ISSUES:issues/%=issue-%.html) PANDOC != command -v pandoc 2> /dev/null -all: $(DEST_PDF_FILES) +all: $(DEST_PDF_FILES) $(DEST_HTML_FILES) issue-%.pdf: issues/% $(PANDOC) \ @@ -17,3 +18,22 @@ issue-%.pdf: issues/% --output $@ \ $" \ + --metadata include-after:"" \ + --css https://tilde.team/css/hacker.css \ + --output $@ \ + $ Date: Mon, 23 Sep 2019 11:41:02 -0400 Subject: [PATCH 3/4] permalinks and make non-h1 headers smaller --- Makefile | 16 +++++++++------- header-permalinks.lua | 6 ++++++ increase-header-levels.lua | 7 +++++++ 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 header-permalinks.lua create mode 100644 increase-header-levels.lua diff --git a/Makefile b/Makefile index 72d3d04..b4c1630 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,12 @@ ISSUES != find issues -type d -DEST_PDF_FILES := $(ISSUES:issues/%=issue-%.pdf) -DEST_HTML_FILES := $(ISSUES:issues/%=issue-%.html) +DEST_PDF_FILES := $(ISSUES:issues/%=dist/issue-%.pdf) +DEST_HTML_FILES := $(ISSUES:issues/%=dist/issue-%.html) PANDOC != command -v pandoc 2> /dev/null all: $(DEST_PDF_FILES) $(DEST_HTML_FILES) -issue-%.pdf: issues/% +dist/issue-%.pdf: issues/% $(PANDOC) \ --file-scope \ --from markdown \ @@ -18,22 +18,24 @@ issue-%.pdf: issues/% --output $@ \ $" \ - --metadata include-after:"" \ + --variable include-before:"
" \ + --variable include-after:"
" \ --css https://tilde.team/css/hacker.css \ --output $@ \ $ 1 then + elem.level = elem.level + 1 + end + return elem +end + -- 2.34.1 From 393d46f8d36c13e995f81740e8b9e475970ffb53 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 23 Sep 2019 11:55:31 -0400 Subject: [PATCH 4/4] add php issue listing --- .gitignore | 4 ++-- dist/index.php | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 dist/index.php diff --git a/.gitignore b/.gitignore index f4df0be..f30ec77 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -*.pdf -*.html +dist/*.pdf +dist/*.html diff --git a/dist/index.php b/dist/index.php new file mode 100644 index 0000000..ca30867 --- /dev/null +++ b/dist/index.php @@ -0,0 +1,33 @@ + + + + + + + + + tildeverse zine + + + +
+

tildeverse zine

+ +

this is the tildeverse zine

+

get involved and send in some content: tildeverse/zine

+ +

issues

+ + +

issue

+

+ html version + pdf version +

+ + +
+ + + -- 2.34.1