1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Add new edition for Tank, along with a build script

This commit is contained in:
Jermolene 2014-02-12 18:29:32 +00:00
parent d56eec40c9
commit 1a8d6811b7
8 changed files with 83 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

23
tankbld.cmd Normal file
View File

@ -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 Executable file
View File

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