Node.js version, MacOS Where are system tiddlers stored? And where are themes stored?

106 views
Skip to first unread message

iani

unread,
Oct 11, 2015, 5:14:48 AM10/11/15
to TiddlyWiki

Hello, 

in the latest Node.js version (5.1.9) on MacOS 10.10 (, 10.11), where are the system tiddlers and the theme files stored when one does 

npm install -g tiddlywiki

I suggest this information should be included in the Node.js part of the documentation on tiddlywiki.com

Also: Is there a guide on writing plugins, modifying system tiddlers, writing themes, extending TiddlyWiki with JS using the separate file format of Node.js?

Thanks, 

Iannis Zannos


Jeremy Ruston

unread,
Oct 11, 2015, 7:05:20 AM10/11/15
to tiddl...@googlegroups.com
Hi Iannis

in the latest Node.js version (5.1.9) on MacOS 10.10 (, 10.11), where are the system tiddlers and the theme files stored when one does 

On Mac OS X, npm global installs end up in /usr/local/lib/node_modules/tiddlywiki

I suggest this information should be included in the Node.js part of the documentation on tiddlywiki.com

It’s not usually relevant. If you want a custom installation then you shouldn’t install tiddlywiki globally, but rather install it into a particular folder, customise it and reference it directly.

What are you trying to accomplish?

Also: Is there a guide on writing plugins, modifying system tiddlers, writing themes, extending TiddlyWiki with JS using the separate file format of Node.js?

http://tiddlywiki.com/dev gathers information for JavaScript developers, and there’s a lot of information about customising through modifying system tiddlers on http://tiddlywiki.com, and the sites linked to under “Resources”.

Best wishes

Jeremy.


Thanks, 

Iannis Zannos



--
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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/9efdd2b4-7448-4963-95d3-a67af2f6dd5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

iani

unread,
Oct 11, 2015, 9:16:22 AM10/11/15
to TiddlyWiki

Hi Jeremy, 

thanks for answering (so fast...). 

On Mac OS X, npm global installs end up in /usr/local/lib/node_modules/tiddlywiki

 So much I was able to find out from npm documentation.  I looked there to find the source for the system tiddler 

The purpose for this is in my answer to your question: 

What are you trying to accomplish?

 I was revisiting a problem about which I posted here on April 8, under topic [TW5] ? syncer-browser sync error

The goal to accomplish is to export a single-html-file version of a wiki, from Node.js version 5.1.9, with minimal config ("out of box"), using the command 

tiddlywiki <source folder> --rendertiddler $:/core/save/all <target file>.html text/plain

Under the 5.1.7 I was using a multi-folder setup to achieve a render, setting Node.js up to serve from the ../pages folder, and rendering to ../readonly

...
   
"includeWikis": [
       
"../pages"
   
],
   
"config": {
       
"default-tiddler-location": "../pages/tiddlers"
   
}
}


 For this I used the shell command: 

tiddlywiki ../readonly --rendertiddler $:/core/save/all ../../index.html text/plain

So I was trying to accomplish is for this to work just with the default "out of box" setup which has a single folder "tiddlers", instead of using the multiple-folder setup, which is considerably more complex..

tiddlywiki tw5.1.9-filled --rendertiddler $:/core/save/all index.html text/plain

On the second try, right now, this seems to work fine, so pending further tests, the issue may be resolved. (Previously there was an error about a missing "core" tiddler save, noted in the above thread).

Still, IMHO the folders under 

 /usr/local/lib/node_modules/tiddlywiki

should be briefly explained somewhere.

Overall, I find that the Node.js version does not yet figure centrally in tiddlywiki.com even though it is about a year since it has been out of beta. This may be just me, working with Node.js instead of the other versions, but it may be worth asking whether the trend is generally changing in the TW community and to accordingly start some steps in rearranging TW to somehow highlight related topics. I am aware that this may be just a personal bias, still I wanted to share this here. 

Best regards and wishes, 
Iannis Z.

iani

unread,
Oct 11, 2015, 10:51:20 AM10/11/15
to TiddlyWiki

Returning to the issue: 

Actually the issue is NOT solved. 

An error is posted on the html-exported wiki when viewing it remotely on an apache server.  The error is: 

syncer-browser - 17:47:56 11 10 2015

XMLHttpRequest error code: 404

syncer-browser - 17:47:57 11 10 2015

Sync error while processing '$:/StoryList': XMLHttpRequest error code: 404



However, this error is not posted when reading the same file on the browser locally using the file:// protocol.

Iannis Zannos
Reply all
Reply to author
Forward
0 new messages