Hello Jeremy, these are some quite neat tools that you noted here. In the meanwhile I have started posting my stuff online, using the more primitive, but actually very easy to use technique of the save button combined with a tiny shell script that copies the latest saved file via rsync to the server. The results are here:
http://larigot.avarts.ionio.gr/users/iani/wikis/ The index wiki is this one: http://larigot.avarts.ionio.gr/users/iani/wikis/sudel-a.html And this is where I collect the various tricks that I learn on the way: http://larigot.avarts.ionio.gr/users/iani/wikis/tw5square.html I'll test your suggestions and post the results in the tw5square wiki or here. Thanks again. Cheers, Iannis Z. On Wednesday, October 8, 2014 6:35:35 PM UTC+3, Jeremy Ruston wrote: > > Hi iani > > TW5 is working very well for me. I run it locally on my macbook using >> node.js but would like to use the saved html version for publishing the >> wiki as a read-only website on a public webserver. Therefore I need to >> customize the save-button to do the following things: >> > > If you're running TW5 under node.js then you can generate the readonly > HTML version of the wiki from the command line, without requiring you to > manually click a button. > > There are a few parts to the answer. The first is this command that > generates a standalone HTML file from a wiki: > > tiddlywiki mywikifolder --rendertiddler $:/core/save/all index.html > text/plain > > The HTML file will be placed in the `output` folder of the wiki, but you > can of course override the location. > > By default, though, you'll get a snapshot of the wiki that includes the > plugins used by the client-server configuration. They're not required in a > standalone HTML file, and will cause confusing error messages. > > The usual way to workaround that problem is to work with two separate wiki > folders. The first (such as "editions/tw5.com" in the TW repo) contains > the tiddlers and plugins needed for the standalone wiki. The second (such > as "editions/tw5.com-server" in the TW repo) use the "includeWikis" > property of the "tiddlywiki.info" file to include the tiddlers from the > first wiki, and also explicitly includes the plugins needed by the > client-server configuration. Have a look at those two wiki folders in the > TW repo to see the details. > > With those two wiki folders set up you can use the client-server one with > the --server command to perform ordinary editing over HTTP, and use the > standalone wiki folder for generating the standalone HTML file. > > There's one more step to give you the readonly version of the wiki. Create > a new wiki folder that includes the tiddlers from the standalone wiki > folder, and also include the following tiddlers to disable the new-tiddler, > savewiki, info and edit buttons: > > $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/new-tiddler --> > "hide" > $:/config/PageControlButtons/Visibility/$:/core/ui/Buttons/save-wiki --> > "hide" > $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/info --> "hide" > $:/config/ViewToolbarButtons/Visibility/$:/core/ui/Buttons/edit --> "hide" > > Then you can build the readonly wiki folder to gain a readonly, standalone > HTML file. > > >> - Temporarily remove the save, info and new-tiddler buttons >> - Save the wiki under a set name such as for example "MyJournal.html" >> (instead of generated names such >> as 2e8731ae-bcf4-41a7-9d15-5f40b5ea7e0a.html >> > > I'm guessing you're using Firefox. It doesn't support specifying a > filename for a downloaded file, we're stuck with those cryptic generated > filenames. > > Best wishes > > Jeremy. > > > > >> How to achieve that? Can someone let me know which tiddlers would need >> editing to make the above changes? >> >> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/tiddlywiki. >> For more options, visit https://groups.google.com/d/optout. >> > > > > -- > Jeremy Ruston > mailto:[email protected] <javascript:> > -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.

