Build Index.html on Node.JS with Customized Tiddlers Location

I have a TiddlyWiki on Node.JS with below tiddlywiki.info:

{
    "description": "MyWiki is a basic client-server edition",
	"config": {
		"default-tiddler-location": "../src"
	},
    "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight"
    ],
    "themes": [
        "tiddlywiki/vanilla",
        "tiddlywiki/snowwhite"
    ],
    "build": {
        "index": [
            "--rendertiddler",
            "$:/plugins/tiddlywiki/tiddlyweb/save/offline",
            "index.html",
            "text/plain"
        ]
...

As you see I use a custom path for default-tiddler-location

Everything works fine. I start my wiki with

tiddlywiki mywiki --listen

and I can add tiddlers to mywiki and they are stored correctly under “…/src”. So far so good!

Then I use the build command as below:

tiddlywiki mywiki --build index

This produces index.html BUT it is empty!! none of tiddlers from ../src are in index.html.

Question
Is there any issue with build command (hence --rendertiddler) to build an index.html from customized filepath?

It’s intended to be used as follows. So if you build the “tw5-com” it will use those tiddlers.

The config below is for the “tw5-com-server” configuration. So the best way to go is to work with 2 editions

Any other way will cause a lot of consistency problems.

1 Like

So I have to also use "includeWikis": [, I give a try and return to you!

This works! Thank you @pmario.

It seems I need to include "includeWikis": in my tiddlywiki.info file.

Absolutely. I use all my common setting tiddlers in a dedicated folder, and when a new TiddlyWiki release is published, I can quickly update all my private editions using a batch script.