diff options
| author | Charlotte Koch <charlotte@magentastripe.com> | 2024-06-09 15:34:28 -0700 |
|---|---|---|
| committer | Charlotte Koch <charlotte@magentastripe.com> | 2024-06-09 15:34:28 -0700 |
| commit | 5ee36725a963de52b219069d7ae592110a994ac8 (patch) | |
| tree | 6f96a2e1775ce7cb2266f0dfcfd8a01993faacf3 /templates | |
| parent | 4ea0ee9a6d5e77ae9220625cffcdd7c3d6ea825f (diff) | |
Add willora(1) which can generate a project directory for you
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/CHAP01.adoc.erb | 10 | ||||
| -rw-r--r-- | templates/Makefile.erb | 33 | ||||
| -rw-r--r-- | templates/frontmatter.adoc.erb | 44 | ||||
| -rw-r--r-- | templates/part01.adoc.erb | 1 |
4 files changed, 88 insertions, 0 deletions
diff --git a/templates/CHAP01.adoc.erb b/templates/CHAP01.adoc.erb new file mode 100644 index 0000000..1123e41 --- /dev/null +++ b/templates/CHAP01.adoc.erb @@ -0,0 +1,10 @@ +// ===================================================================== + +== Chapter 1 + +Welcome to WilloraPDF! This is the beginning of a new chapter. You can +actually make more than just PDFs with Willora, by the way. + +"Isn't it __just__ wonderful?`" my partner says in an exaggerated manner. + +"`Sure is, darling,`" I reassure them. "`Sure thing.`" diff --git a/templates/Makefile.erb b/templates/Makefile.erb new file mode 100644 index 0000000..bff4d4c --- /dev/null +++ b/templates/Makefile.erb @@ -0,0 +1,33 @@ +NAME= <%= @opts[:nickname] %> +PUBLISHER= <%= @opts[:publisher] %> +THEME= this + +BUNDLE?= bundle32 +RUBY?= ruby32 + +PAPERBACK_ISBN= 111-1-11111111-1-1 +HARDCOVER_ISBN= 222-2-22222222-2-2 +EPUB_ISBN= 333-3-33333333-3-3 + +PAPERBACK_CATNO= MSM-00004 +HARDCOVER_CATNO= MSM-00005 +EPUB_CATNO= MSM-00006 + +EPUB_REVDATE= 1970-01-01 +EPUB_SERIESNAME= <% @opts[:seriesname] %> + +COLOPHON_TEMPLATE= adoc/colophon-template.adoc.erb +PAPERBACK_COLOPHON_FILE= colophon-paperback.adoc +HARDCOVER_COLOPHON_FILE= colophon-hardcover.adoc +EPUB_COLOPHON_FILE= colophon-epub.adoc + +########## ########## ########## + +CHAPTERS+= adoc/part01.adoc +CHAPTERS+= adoc/CHAP01.adoc +CHAPTERS+= adoc/backmatter.adoc + +########## ########## ########## + +.-include "mk/local.mk" +.include "mk/willora.mk" diff --git a/templates/frontmatter.adoc.erb b/templates/frontmatter.adoc.erb new file mode 100644 index 0000000..7dd7dc4 --- /dev/null +++ b/templates/frontmatter.adoc.erb @@ -0,0 +1,44 @@ += <%= @opts[:title] %> +<%= @opts[:author] %> +:nofooter: +:reproducible: +:pagenums: + +<%# =================================================================== %> + +[colophon%notitle%nonfacing] += Colophon + +(C) <%= Time.now.year.to_s %> <%= @opts[:publisher] %> + +All rights reserved. + +This is a work of fiction. Names, characters, places and incidents are +the product of the author's imagination or are used fictitiously. Any +resemblance to actual events, locales or persons, living or dead, is +purely coincidental. + +Published by <%= @opts[:publisher] %> + +Printed by XXX THE PRINTER. + +Cover design by XXX THE ARTIST. + +Typeset in 12-point EB Garamond. + +First Edition + +// ISBN-13 <%# var["ISBN"] %> + +// Publisher Catalog Number <%# var["CATNO"] %> + +Learn more at the author's website: [.underline]#\https://charlotte-koch.com/# + +Learn more about the publisher: [.underline]#\https://magentastripe.com/# + +<%# =================================================================== %> + +[dedication%notitle] += Dedication + +image::dedication.pdf[page=3] diff --git a/templates/part01.adoc.erb b/templates/part01.adoc.erb new file mode 100644 index 0000000..88db084 --- /dev/null +++ b/templates/part01.adoc.erb @@ -0,0 +1 @@ += Part I |
