TiddlyWiki node command line issue importing and/or rendering for offline

97 views
Skip to first unread message

Cade Roux

unread,
Aug 10, 2019, 4:19:53 PM8/10/19
to TiddlyWiki
I am importing a JSON array of 10 Tiddlers with title and text properties only.

After running the command below, I have a tiddlywiki.info file in the folder, an output folder with an empty index.html file and no sign of the tiddlers.

This is what the JSON file looks like:

[
    {
        "title" : "SCHEMA Config"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA DataMart"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA db_securityadmin"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA dbo"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA Doc"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA ETL"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "SCHEMA Logging"
        ,"text" : "Module: LOG\nDescription: Logging schema"
    }
    ,{
        "title" : "AscendDataMart SCHEMA Modeling"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "AscendDataMart SCHEMA Notify"
        ,"text" : "Module:\nDescription:"
    }
    ,{
        "title" : "AscendDataMart SCHEMA TEST"
        ,"text" : "Module:\nDescription:"
    }
]


>tiddlywiki ./DataDictionary --verbose --init empty
Boot log:
  Startup task: load-modules
  Startup task: info after: load-modules before: startup
  Startup task: startup after: load-modules
  Startup task: story after: startup
  Startup task: commands platforms: node after: story
Executing command: init empty
Copied edition 'empty' to ./DataDictionary

>tiddlywiki ./DataDictionary --verbose --import tiddlers.json application/json
Boot log:
  Startup task: load-modules
  Startup task: info after: load-modules before: startup
  Startup task: startup after: load-modules
  Startup task: story after: startup
  Startup task: commands platforms: node after: story
Executing command: import tiddlers.json application/json
10 tiddler(s) imported

>tiddlywiki ./DataDictionary --verbose --rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline index.html text/plain
Boot log:
  Startup task: load-modules
  Startup task: info after: load-modules before: startup
  Startup task: startup after: load-modules
  Startup task: story after: startup
  Startup task: commands platforms: node after: story
Executing command: rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline index.html text/plain

Cade Roux

unread,
Aug 12, 2019, 1:44:04 PM8/12/19
to TiddlyWiki
For the benefit of anyone coming behind me, I think the issue was that the --init initialization of the TiddlyWiki did not have the plugins in the tiddlywiki.info file:

"tiddlywiki/tiddlyweb", "tiddlywiki/filesystem"

This seems to help several things in generation now.

Thanks,

Cade

Jeremy Ruston

unread,
Aug 14, 2019, 11:13:54 AM8/14/19
to tiddl...@googlegroups.com
Hi Cade

I’m glad you got it sorted. The trick is to use "tiddlywiki ./DataDictionary --verbose --init server” to initialise the wiki folder, which automatically includes the required plugins in tiddlywiki.info

Best wishes

Jeremy

-- 
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/23d2edb2-8c5f-486b-8539-b7b6c120f2dd%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages