Thanks @saqimtiaz!
I see your feed examples for render – and will want feeds! – I will attempt to replace these rendertiddler ones with render using your examples.
GROAN order dependent command line switches…
(and also silent failing with no errors…)
OK this worked – index.html
in root, all other files in /static/
tiddlywiki --load twgroceries.html --output ./ --build static
And, editing the scripts:
"--rendertiddlers","[!is[system]]","$:/core/templates/static.tiddler.html","./","text/plain",
This works … but it deletes all the contents of the current root folder you run it from
. Since I was operating in git and had just checked everything in, I just checked it out again so nothing lost. So, does need to go into some sub folder.
Whenever you run the main static tiddler flow, it deletes / recreates the folder, so it has to go first, and then you can generate an index file and it will end up in that same static folder:
"--rendertiddlers","[!is[system]]", "$:/core/templates/static.tiddler.html","static","text/plain",
"--rendertiddler", "$:/core/templates/static.template.html","static/index.html","text/plain",
"--rendertiddler", "$:/core/templates/static.template.css","static/static.css","text/plain"]
But! the index.html assumes a static subfolder, so all the relative paths there are wrong (appends an extra “static”). I guess that means spelunking in these core templates. I don’t want this to be example.com/static/sometiddler.html/
, which is why I’m doing this – we should be able to have nice clean URLs like example.com/sometiddler.html
.
So, feels like I’m making progress. Now just need to auto-run these commands via GH Actions.