summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCharlotte Koch <charlotte@magentastripe.com>2024-07-16 11:06:24 -0700
committerCharlotte Koch <charlotte@magentastripe.com>2024-07-16 11:06:24 -0700
commit7a2c426add338b6fd3c62271903caa74118c92a2 (patch)
treea4fe196f7b8f3b4755b828a2ee8c33c86167908b /lib
parent35aeb83182d91599e602b88ca15f219e1a6e2ca8 (diff)
The 'lib' dir for the project is different from that for WilloraPDF itself
Diffstat (limited to 'lib')
-rw-r--r--lib/WilloraPDF_Manuscript_Reference.odtbin30819 -> 0 bytes
-rw-r--r--lib/willora_pdf_converter.rb19
2 files changed, 0 insertions, 19 deletions
diff --git a/lib/WilloraPDF_Manuscript_Reference.odt b/lib/WilloraPDF_Manuscript_Reference.odt
deleted file mode 100644
index 79913fa..0000000
--- a/lib/WilloraPDF_Manuscript_Reference.odt
+++ /dev/null
Binary files differ
diff --git a/lib/willora_pdf_converter.rb b/lib/willora_pdf_converter.rb
deleted file mode 100644
index b2be0ea..0000000
--- a/lib/willora_pdf_converter.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# WilloraPDF
-# Charlotte Koch <charlotte@magentastripe.com>
-#
-
-# With guidance from:
-# - https://docs.asciidoctor.org/pdf-converter/latest/extend/create-converter/
-# - https://docs.asciidoctor.org/pdf-converter/latest/extend/use-cases/#custom-thematic-break
-class WilloraPDFConverter < Asciidoctor::Converter.for('pdf')
- register_for 'pdf'
-
- # My custom thematic break, which is just a blank space the size of the main
- # font. (The default thematic break draws a horizontal rule.)
- def convert_thematic_break(node)
- theme_margin(:thematic_break, :top)
- move_down(theme.base_font_size)
- theme_margin(:thematic_break, ((block_next = next_enclosed_block node) ? :bottom : :top), block_next || true)
- end
-end