You need to structure the directory correctly so that the tiddlywiki
node.js process understands your commands.
Write all your tiddlers & a "tiddlywiki.info" file (json format) as below:
```
./WikiDirectory/
|--tiddlywiki.info
|--tiddlers/
|----All_your_tids.tid
```
and make sure your "tiddlywiki.info" file as a "Build Target":
```
{
plugins: [],
"build": { "index": [
"--rendertiddler","$:/core/save/all","index.html","text/plain"] }
}
```
Once your program has created that file structure, you need to call the
tiddlywiki process as below:
`tiddlywiki "C/path/to/the/WikiDirectory" --build index`
This will generate a new folder in your wiki directory called "output" with
a new "index.html" file as your built-wiki.
Further
reading:
https://tiddlywiki.com/#BuildCommand:BuildCommand%20%5B%5Btiddlywiki.info%20Files%5D%5D%20HelloThere%20GettingStarted%20Community
Best,
Joshua Fontany
On Tuesday, January 26, 2021 at 3:42:19 PM UTC-8 TW Tones wrote:
> Hi,
>
> I am not totally clear on the objective of the task, but tiddlywiki itself
> uses a process to save an empty file. If you follow how this works on
> Tiddlywiki.com starting with the download empty button you can see it uses
> a template and within that a filter determines which tiddlers to download
> and their format, any tiddlywiki can generate an empty.html file. This can
> also be done via commands in NodeJS. One feature exports the Javascript
> separately rather than a single file. This template effectively encodes the
> way to save a whole wiki, thus arguably contains all the logic needed.
>
> It is best to use tiddlywiki itself to load tiddlers into it, be it the
> node or single file wikis importing tiddlers. If you take the completely
> manual approach to edit the html you need to understand precisely the
> tiddler format (that's trivial) and where entries are to be stored in the
> html file. You will also see in the html file the tiddlers are stored in
> one place but they are often referenced by name in other parts only detail
> knowledge of the tiddlywiki structure can answer how and if you need to do
> more to add tiddlers directly.
>
> I hope others can provide more info, but I hope this helps somewhat.
>
> Tones
> On Wednesday, 27 January 2021 at 08:10:48 UTC+11 [email protected] wrote:
>
>> So i started Working with my professor on Tiddlywiki and i found it quite
>> interesting. Now i m working on an automatic generated Tiddlywiki project
>> from a Java project . So all the informations i need to build my
>> Tiddlywiki is in the Java File and my professor told me he wants all those
>> informations to be generated automatically in a Tiddlywiki at first i just
>> make .tid files for each tiddler and i thought i was done but he wanted me
>> to write on an Empty tiddlywiki file (Empty.html) that way when the java
>> program is executed it writes on the the File Empty.html (as if it is a
>> .txt file )but it didn't work and i only write at the end of the html code
>> .i can't find anything to help me out or where exactly should i write or
>> how to write it other than that i have no knowledge of html or js which
>> made this one near impossible task , please guys i need your help i'm
>> already running late and i have no idea what to do .
>>
>
--
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/a700058c-68ae-4a0a-8597-33f9a7b98d7fn%40googlegroups.com.