Maybe I'm not following what you're asking for, but my Anki syncing plugin 
TiddlyRemember needs to turn single-file wikis into folder wikis. It just 
uses 
<https://github.com/sobjornstad/TiddlyRemember/blob/master/anki-plugin/src/twimport.py#L33>
:

tiddlywiki --load *wiki_path* --savewikifolder *output_directory*

There is an optional filter argument after *output_directory *if you only 
want some of the tiddlers to be included in the new folder wiki.



On Wednesday, December 9, 2020 at 5:49:08 PM UTC-6 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/20ab532c-13cc-4454-a456-5269d426e063n%40googlegroups.com.

Reply via email to