Skip to content

Commit

Permalink
Add new edition for Tank, along with a build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermolene committed Feb 12, 2014
1 parent d56eec4 commit 1a8d681
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 0 deletions.
3 changes: 3 additions & 0 deletions editions/tw5tank/tiddlers/TiddlerListTemplate.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: TiddlerListTemplate

<$view field="title" format="link"/> <small><$view field="type"/></small>
15 changes: 15 additions & 0 deletions editions/tw5tank/tiddlers/TiddlyWiki5 for TiddlyWeb.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
title: TiddlyWiki for Tank
created: 201311152153
modified: 201311152153

! Features

* Loads skinny tiddlers from entire recipe at startup/login
* Subsequently syncs changes back to the server
* Polls for changes from the server

! Issues

* ''$:/DefaultTiddlers'' doesn't work because thanks to lazy loading it is only loaded after it is needed
* Ignores ''if-match'' header, so doesn't detect clashes on save
* UI state (eg current tab status) is shared between all users of the wiki, meaning that the UI can spontaneously change in response to a server sync
3 changes: 3 additions & 0 deletions editions/tw5tank/tiddlers/system/DefaultTiddlers.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/DefaultTiddlers

[[TiddlyWiki5 for Tank]]

This comment has been minimized.

Copy link
@cdent

cdent Feb 12, 2014

I think you want TiddlyWiki for Tank here, based on changes elsewhere?

This comment has been minimized.

Copy link
@Jermolene

Jermolene Feb 12, 2014

Member

Whoops and I see the filename is wrong for that tiddler. Hang on.

3 changes: 3 additions & 0 deletions editions/tw5tank/tiddlers/system/SiteSubtitle.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: SiteSubtitle

for Tank
3 changes: 3 additions & 0 deletions editions/tw5tank/tiddlers/system/SiteTitle.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: SiteTitle

TiddlyWiki in the Sky
10 changes: 10 additions & 0 deletions editions/tw5tank/tiddlywiki.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"plugins": [
"tiddlywiki/fullscreen",
"tiddlywiki/tiddlyweb"
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
]
}
23 changes: 23 additions & 0 deletions tankbld.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@echo off

rem build the Tank edition of TiddlyWiki

rem See https://tank.peermore.com

rem Create the tmp directory if needed

mkdir tmp

rem Open the tank edition in TW5 and save the template for the main HTML file

node .\tiddlywiki.js ^
editions\tw5tank ^
--verbose ^
--rendertiddler $:/core/save/all tmp\app.html text/plain ^
|| exit 1

rem Prepend the type information that TiddlyWeb needs to turn the .html file into a .tid file

echo "type: text/html" > tmp\app.txt
echo "" >> tmp\app.txt
type tmp\app.html >> tmp\app.txt
23 changes: 23 additions & 0 deletions tankbld.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# build the Tank edition of TiddlyWiki

# See https://tank.peermore.com

# Create the tmp directory if needed

mkdir -p tmp

# Open the tank edition in TW5 and save the template for the main HTML file

node ./tiddlywiki.js \
editions/tw5tank \
--verbose \
--rendertiddler $:/core/save/all tmp/app.html text/plain \
|| exit 1

# Prepend the type information that TiddlyWeb needs to turn the .html file into a .tid file

echo "type: text/html" > tmp/app.txt
echo "" >> tmp/app.txt
cat tmp/app.html >> tmp/app.txt

0 comments on commit 1a8d681

Please sign in to comment.