RFI: GitHub Actions Static Publishing Script

I am closer to having this working. I’m using the defaults from “empty” edition.

@saqimtiaz I couldn’t find examples with render, do you have some?

Progress

Here’s where I’m at:

Couldn’t get it working at all

From single file wiki to output. Just fails silently? Verbose mode does nothing?

Solution: you must have a tiddlywiki.info file

You can grab the default one from empty edition.

Looking at that file was helpful. eg. I changed the name of static to index.html instead, and deleted the commands around alltiddlers.html.

Load from a single file wiki and build a static site

tiddlywiki --load twgroceries.html --build static

Open Questions

This outputs to /output/

  • how to change this output folder? Specifically, I don’t want a static.html AND a subfolder of /static/, I’d like them all in one folder
  • also I’d actually like to do the current folder I’m operating in, but --output ./ or similar don’t work

The “front page” gets rendered differently (without the custom Notebook theme), but all the individual tiddlers do get rendered with it. I guess I need to include the Notebook theme in the tiddlywiki.info? I don’t know what the path is for that theme.

Helpful links


I am working on this here https://github.com/bmann/twgroceries

I’ve also enabled git saving, which is really nice. I can just hit save on my desktop and it pushes it up (still have to pull down the code to get an updated local copy, but decent for a single working session).

I think I can use the LogSeq Publish plugin and the “publish to gh-pages” branch after I get things building correctly.

Right now, if I were to check in the output folder, I could set that as the subfolder to build from, and I’d be done. But that’s completely manual and what we’re trying to fix :slight_smile: