Add new edition for Tank, along with a build script

print-window-tiddler
Jermolene 2014-02-12 18:29:32 +00:00
rodzic d56eec40c9
commit 1a8d6811b7
8 zmienionych plików z 83 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,3 @@
title: TiddlerListTemplate
<$view field="title" format="link"/> <small><$view field="type"/></small>

Wyświetl plik

@ -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

Wyświetl plik

@ -0,0 +1,3 @@
title: $:/DefaultTiddlers
[[TiddlyWiki5 for Tank]]

Wyświetl plik

@ -0,0 +1,3 @@
title: SiteSubtitle
for Tank

Wyświetl plik

@ -0,0 +1,3 @@
title: SiteTitle
TiddlyWiki in the Sky

Wyświetl plik

@ -0,0 +1,10 @@
{
"plugins": [
"tiddlywiki/fullscreen",
"tiddlywiki/tiddlyweb"
],
"themes": [
"tiddlywiki/vanilla",
"tiddlywiki/snowwhite"
]
}

23
tankbld.cmd 100644
Wyświetl plik

@ -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
tankbld.sh 100755
Wyświetl plik

@ -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