To avoid thrashing if you can trigger this process on save wiki (without 
autosave) it may be an appropriate regular and appropriate interval.

Tony

On Wednesday, 13 May 2020 23:22:08 UTC+10, Soren Bjornstad wrote:
>
> I've been working on this with the goal of publishing only part of my 
> personal wiki. I'm just using a real straightforward shell script. Here's a 
> snippet:
>
> PUB_FOLDER="public-wiki"
> PRIV_FOLDER="zk-wiki"
> FILT="[is[system]] [tag[Public]] -[[$:/plugins/tiddlywiki/tiddlyweb]] 
> -[[$:/plugins/tiddlywiki/filesystem]]"
>
> pub_wiki="${PUB_FOLDER:?oops}/wiki"
>
> echo "Exporting public tiddlers..."
> rm -rf "$pub_wiki"
> "$(npm bin)/tiddlywiki" "$PRIV_FOLDER" --savewikifolder "$pub_wiki" 
> "$FILT"
>
> This will create a new wiki in the $pub_wiki location containing only the 
> tiddlers matching your filter, which you can then modify further if needed 
> (e.g., I adjust the starting tiddlers and some metadata) and build via 
> whatever method you're currently using.
>
> You could run this periodically or maybe find some way to watch for 
> changes (but since Node saves continuously, that might just cause a lot of 
> thrashing).
>
>
> On Wednesday, May 13, 2020 at 7:27:18 AM UTC-5, Edgaras wrote:
>>
>> I am trying to optimise the workflow of building static sites, now I am 
>> trying to use Node.js TW version.
>>
>> Is there a way to continuously or periodically build/export static site 
>> respecting defined filters (I only want to export tagged tiddlers).
>>
>> I am planning to share my optimised website building process when I am 
>> done! 😊 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/40888628-5acd-4d3a-aba1-7fa49985de42%40googlegroups.com.

Reply via email to