Thanks, Mark and Soren. 

I see I didn't actually specify that my home-grown plugins live in a folder 
away from this wiki. Sorry. I want to rebuild using these files every time, 
to have the latest changes.

I think I abandoned savewikifolder mainly because it generates a new 
tiddlywiki.info file in addition to putting my plugins in a subdirectory, 
but that was before I concluded that I needed a shell function anyway. 
Without testing, I guess that savewikifolder and a shell script to 
move/delete some files would work, and might have advantages over my 
current method of running the wiki through render with a tiddler filter, a 
name filter, and a template.

So far I have the impression that I'm doing something weird, so it's not a 
one-liner, but it's possible, because there is just so much flexibility in 
TiddlyWiki.

Cheers,
Chris
On Wednesday, December 9, 2020 at 7:46:27 PM UTC-5 Mark S. wrote:

> Take a look at https://tiddlywiki.com/#SaveWikiFolderCommand
>
>
>
> On Wednesday, December 9, 2020 at 3:49:08 PM UTC-8 clutterstack wrote:
>
>> Hi all,
>>
>> Is there a "right" way, using node, to take a standalone index.html 
>> TiddlyWiki in a folder and break it into tiddlers that can then be used in 
>> a new node.js wiki build? 
>>
>> I am guessing that it's a matter of "why would you want to do that more 
>> than occasionally? And occasionally, it's not too much trouble to export 
>> your tiddlers to start a new node.js wiki." 
>>
>> But I'm curious to know whether it's a matter instead of "of course; 
>> there's a trivial way to accomplish this with a one-liner in the terminal."
>>
>> I have one wiki that I'm using in standalone mode, but I'm using it to 
>> develop my plugins as I write in it. So I like to be able to go into VS 
>> Code, tweak the canonical copy of the plugin, rebuild the html file, reload 
>> in the browser, use the wiki a bit, and so on.
>>
>> I have a build target in this wiki's tiddlywiki.info, called deconstruct, 
>> that contains an elaborate tiddler filter, and it seems to be working for 
>> me so far, purging plugins but keeping plugin settings etc. Then I have a 
>> shell function to copy the wiki to a backup file, deconstruct and then 
>> rebuild it.
>>
>> I see the TiddlyWeb plugin makes a replacement tiddler for 
>> $:/core/save/all that includes the right tiddlers to build an offline 
>> wiki, but you have to have TiddlyWeb installed in the wiki.
>>
>> Any thoughts?
>>
>> Thanks,
>> Chris
>>
>

-- 
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/2112033b-1301-4f11-aedf-a040721e098bn%40googlegroups.com.

Reply via email to