Recipe for copying my Acrylamid-generated static html website to my webhost (nearlyfreespeech.net).
In a nutshell, I use QtdSync to generate the basic rsync update script, and then add rsync advanced options as make sense to me. From QtdSync's progress screen the rsync command line can be copied and pasted to create a batch file (strip the
-e ... sshpass... line for interactive password prompting).
QtdSync is a bit twitchy around the "backup/don't backup into subfolder" options. Sometimes they appear to have the opposite effect of what they say. I still found it much easier than trying to construct the appropriate rsync script …continue.
Recipe used for converting httrack snapshot of Mindtouch wiki to markdown for acrylamid
Generate the processing list
dir /s/b \www\maphew.com\*.html > process-list.xt
Edit process-list and remove junk, fix bad filenames (resultant from double quotes in name).
Copy to excel and:
- convert text to table using
\ for delim,
- apply conditional formatting highlighting
- sort by html column
- remove duplicates
- save tab delimited
- search and replace tabs with
\, removing dupes
Scripted Html to Markdown to Acrylamid
for /f %a in (process-list-cleaned.txt) do @mkdir .%~pa
for /f %a in (process-list-cleaned.txt) do ^
@pandoc --to markdown --standalone --template acrylamid-pandoc-template.txt "%a" -o ".\%~pa\%~na.md"
acrylamid init converted
rd /s/q converted\content
move www\maphew.com converted