Hosting NodeJs version of site (not stripped down)

119 views
Skip to first unread message

Garrett

unread,
Aug 13, 2020, 4:08:03 PM8/13/20
to TiddlyWiki
Hi there!

New to TiddlyWiki but extremely excited about the potential! I'm interested in exporting my TiddlyWiki site from the NodeJs version into a replica static website that can be hosted online (full JS, CSS, and HTML).

Currently, I'm running the wiki snapshot scripts here to export the site, but I don't like how simplified down the static version is.

My end goal is to basically host online my TiddlyWiki editor version with the controls/buttons turned off. 

Would appreciate any help or pointing in the right direction!

-Garrett

Donald Coates

unread,
Aug 13, 2020, 8:05:07 PM8/13/20
to TiddlyWiki
This tutorial may be helpful:  https://www.didaxy.com/exporting-static-sites-from-tiddlywiki  (this is not my work)

Donald Coates

unread,
Aug 13, 2020, 8:15:21 PM8/13/20
to TiddlyWiki


On Thursday, August 13, 2020 at 4:08:03 PM UTC-4, Garrett wrote:

TW Tones

unread,
Aug 13, 2020, 8:25:45 PM8/13/20
to TiddlyWiki
Garette

Also look at using read-only theme or other method before export.

This is a template used to generate static html from the tiddlers, you can modify this to change the nature of the exported pages.
  • I am keen to have one that creates static tiddler pages on which any links open not the other static versions but the full html giving interactive features.
With the new zip plugin in the next version this may automated to a high degree.

Regards
Tony

Garrett

unread,
Aug 13, 2020, 9:14:40 PM8/13/20
to tiddl...@googlegroups.com
I was able to get the TiddlyWiki full-fledged site from a node version -> static with the tiddlywiki _name_ --build command. Having no problem hosting that. My only step left now is figuring out how to disable the control and editing functions on the static --build version. 

I know that the following CSS will work to disable what I need:
.tc-tiddler-controls {
   display: none;
}

.tc-tab-buttons {
   display: none;
}

But I'm unsure how to get that CSS to run only on the --build version and not on the development --listen server.

JWHoneycutt

unread,
Aug 16, 2020, 1:09:53 PM8/16/20
to TiddlyWiki
I am trying to learn how to generate web pages from my TW5 file, using MacOS Catalina and TW5 version 5.1.22
I am following the instructions graciously provided here: https://www.didaxy.com/exporting-static-sites-from-tiddlywiki

Running the Tiddlywiki server -  Done, I called my directory "TW5_server"
Creating Some Content -  Done
Exporting static pages -  Problem encountered:

TW5_server % tiddlywiki --rendertiddlers [!is[system]] $:/core/templates/static.tiddler.html static text/plain
zsh: event not found: is[system]]

Apparently ZSH is the default shell on MacOS Catalina. I do not know if I have messed up my ZSH shell configuration. I think I want to find it, delete it, and reload a clean shell so I can get past the error above - right? 

Mark S.

unread,
Aug 16, 2020, 2:42:28 PM8/16/20
to TiddlyWiki
Not that I know anything about Macs.

But "!" is a special character on some terminals, so it's possible the shell is interpreting [!is... as a command. Possibly try putting the filter in quotes:

"[!is[system]]"

and see if you at least get a different error ;-)

JWHoneycutt

unread,
Aug 16, 2020, 3:09:59 PM8/16/20
to TiddlyWiki
Mark, I suspect you are right (haven't tried it) 

My solution was to switch the default shell on my MacOS to `bash`, and it the command renders "tids" fine

Reply all
Reply to author
Forward
0 new messages