CMS ETL BBQ! Herein lie scripts I use to go from Day One exports to fully functional web blog and gemini capsule. FAQ 1. Are they good scripts? No. 2. Do they run without a bunch of external dependencies? Also no. 3. Should other people use this? Thrice no.
Go to file
Joe Mulvaney 4f8eae27a3 make the template return a function because the entry template needs a different path to the feed 2023-07-10 03:49:59 +00:00
assets footer update, including copyright 2023-07-10 03:39:38 +00:00
.gitignore ignore temp vim files 2023-07-09 16:54:17 +00:00
DEPENDENCIES text notes of dependencies 2023-07-01 22:49:34 +00:00
README update README 2023-07-03 15:24:00 +00:00
geminiIndexTemplate.js none of these scripts are executable 2023-07-09 02:36:34 +00:00
geminiTagTemplate.js none of these scripts are executable 2023-07-09 02:36:34 +00:00
geminiTemplate.js gopher working 2023-07-07 17:55:57 +00:00
gopherize.js first line should be title 2023-07-08 23:26:37 +00:00
htmlFooter.js make the template return a function because the entry template needs a different path to the feed 2023-07-10 03:49:59 +00:00
htmlIndexTemplate.js make the template return a function because the entry template needs a different path to the feed 2023-07-10 03:49:59 +00:00
htmlTagTemplate.js make the template return a function because the entry template needs a different path to the feed 2023-07-10 03:49:59 +00:00
htmlTemplate.js make the template return a function because the entry template needs a different path to the feed 2023-07-10 03:49:59 +00:00
package-lock.json fix date nonsense using *a new dependency! woo 2023-07-09 13:57:56 +00:00
package.json fix date nonsense using *a new dependency! woo 2023-07-09 13:57:56 +00:00
processDayone.js tag feeds 2023-07-09 16:14:02 +00:00
rssFeed.js fix date nonsense using *a new dependency! woo 2023-07-09 13:57:56 +00:00

README

Given a set of entries from Day One on mac, that is uploaded as a zip file to ~/dayone/ and an empty dir ~/markdown:

$ node processDayone.js --inputZip ~/dayone/<zip> --root ~/markdown

This will:-
1. Run day-one-to-markdown script to get a set of directories each containing one front matter format markdown file
2. Load the frontmatter markdowns, and create gemtext and html
3. Process the images to be ready for distribution (strip EXIF, ensure rotation, smallify)

Note also:
* The DEPENDENCIES file discusses what's needed in the environment that the script is run
* The TODO file is my super-advanced issue tracking system
* There's no license yet