TW5 remove plugins while building tiddlywiki

231 views
Skip to first unread message

Danielo Rodríguez

unread,
Nov 27, 2014, 4:34:34 AM11/27/14
to tiddl...@googlegroups.com
Hello,

I want to build an HTML version of a tiddlywiki that I'm running under node, but I want to remove all the plugins that are not essential for the HTML single edition like the file system sync. How should I construct the rendertiddler command?


Thanks everyone.

Jeremy Ruston

unread,
Nov 27, 2014, 12:29:39 PM11/27/14
to TiddlyWiki
Hi Danielo

I want to build an HTML version of a tiddlywiki that I'm running under node, but I want to remove all the plugins that are not essential for the HTML single edition like the file system sync. How should I construct the rendertiddler command?

If you want to use the same wiki both to produce standalone HTML files and in the client-server configuration then you'll need to adopt the approach you see in the TW5 repo for the editions tw5.com and tw5.com-server.

In other words, store your content in a wiki folder whose tiddlywiki.info file just includes the plugins/themes you want when building a standalone wiki. Then create a new wiki folder for the client-server configuration. It's tiddlywiki.info file would include the plugins/themes you need for the client-server configuration, and use the "includeWikis" feature to include the content from the other standalone wiki.

Best wishes

Jeremy.

 


Thanks everyone.

--
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.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Danielo Rodríguez

unread,
Nov 27, 2014, 2:40:58 PM11/27/14
to tiddl...@googlegroups.com
Hello Jeremy

I think I got your point. I examined several times the configuration of the tiddlywiky repository but never understood it at all. Now with your explanation something has switched on on my mind and I think I got the point I was missing.

Thank you

Danielo Rodríguez

unread,
Dec 1, 2014, 6:05:19 AM12/1/14
to tiddl...@googlegroups.com
Hello Jeremy,

I just noticed a behavior that is probably intended but I find it curious. As I said, I have the problem that the HTML file created when rendering a wiki includes the plugins needed for working with NODE.js. BUT, if I open the resultant HTML file and click the download button the html generated removes ONLY those plugins. This is exactly what I wanted. Can this behavior be reproduced when building the wiki from node.js?

Regards

BJ

unread,
Dec 1, 2014, 8:41:28 AM12/1/14
to tiddl...@googlegroups.com
I seem to remember something similar here:
https://groups.google.com/forum/#!topic/tiddlywiki/jgg5nND10zA
cheers
BJ

Danielo Rodríguez

unread,
Dec 1, 2014, 10:12:26 AM12/1/14
to tiddl...@googlegroups.com
Hello BJ,

And the person who was asking that Is exactly the same :P
From that conversation I extrac this:

The following works OK for me:
tiddlywiki editions/tw5.com-server/  --rendertiddler $:/editions/server/download-offline offline.html text/plain
I'd expect a blank file if the tiddler "$:/editions/server/download-offline" were missing, as would happen if you attempted this command with a wiki that doesn't include the tiddlywebadaptor plugin.

but my wiki does include the mentioned plugin , why I'm getting then an empty wiki?

{
"plugins": [
          "tiddlywiki/filesystem",
 "tiddlywiki/tiddlyweb",
          "tiddlywiki/highlight"
],
"themes": [
          "tiddlywiki/vanilla",
          "tiddlywiki/snowwhite"
    ],
"includeWikis": [
        {"path": "../core", "read-only": true}
    ],
"build": {
"index": [
"--rendertiddler","$:/core/save/all","index.html","text/plain"]
}
}


It's curious to see how the human mind is someway cyclical.

Jeremy Ruston

unread,
Dec 2, 2014, 10:54:22 AM12/2/14
to TiddlyWiki
Hi Danielo

> if I open the resultant HTML file and click the download button the html generated removes ONLY those plugins

That's because the download button in the client-server edition specifically excludes the filesystem and tiddlywebadaptor plugins. Have a look at the filter here:


So you can use that same template with the rendertiddler command to save a copy of the wiki without those plugins:

--rendertiddler $:/plugins/tiddlywiki/tiddlyweb/save/offline offline.html text/plain

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 post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Danielo Rodríguez

unread,
Dec 3, 2014, 3:03:59 AM12/3/14
to tiddl...@googlegroups.com, jeremy...@gmail.com
Thank you Jeremy!!

That did the trick. This deserves a tiddler on the documentation.
Reply all
Reply to author
Forward
0 new messages