From 3cac8c8029e426f97e6819800179695774d4dd44 Mon Sep 17 00:00:00 2001 From: Joe Averbukh Date: Tue, 17 Dec 2024 12:21:49 -0800 Subject: [PATCH] update newsletter script instructions --- server/src/instant/scripts/newsletter.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/src/instant/scripts/newsletter.clj b/server/src/instant/scripts/newsletter.clj index fe8386d96..95199091a 100644 --- a/server/src/instant/scripts/newsletter.clj +++ b/server/src/instant/scripts/newsletter.clj @@ -5,16 +5,21 @@ 1. Create email content in Dropbox. Get sign off on the copy. 2. Export content as markdown and save to `www/intern/_emails/markdown/[slug].md` 3. Preview the styled markdown at `localhost:3000/intern/emails/[slug]` - 4. Once preview looks good, generate html and text versions of the email + 4. Once preview looks good, you can generate images, html and text versions of the email from `client/Makefile` via `make build-email slug=[slug] ` Notes: * We want both html and text to maximize delivery * We use pandoc to convert markdown to html. If you don't have it, you can install it via `brew install pandoc` + * We extract dropbox paper image references from the markdown, save + the images to 'client/www/public/img/emails/[slug]/', and replace + dropbox paper image references with the new image paths * If need be, you can edit the ouputs in`client/www/_emails/html/[slug].html` and `client/www/_emails/txt/[slug].txt` 5. Refresh the page at `localhost:3000/intern/emails/[slug]` and verify text version looks good via the text view button + 6. Once everything looks good open a PR with the changes. Make sure to + merge the PR before sending the newsletter for images to work And now go through the comment block at the bottom of this file to send out the newsletter. Huzzah!