mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 17:10:29 +00:00
Add new edition for Tank, along with a build script
This commit is contained in:
parent
d56eec40c9
commit
1a8d6811b7
3
editions/tw5tank/tiddlers/TiddlerListTemplate.tid
Normal file
3
editions/tw5tank/tiddlers/TiddlerListTemplate.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: TiddlerListTemplate
|
||||||
|
|
||||||
|
<$view field="title" format="link"/> <small><$view field="type"/></small>
|
15
editions/tw5tank/tiddlers/TiddlyWiki5 for TiddlyWeb.tid
Normal file
15
editions/tw5tank/tiddlers/TiddlyWiki5 for TiddlyWeb.tid
Normal 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
|
3
editions/tw5tank/tiddlers/system/DefaultTiddlers.tid
Normal file
3
editions/tw5tank/tiddlers/system/DefaultTiddlers.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: $:/DefaultTiddlers
|
||||||
|
|
||||||
|
[[TiddlyWiki5 for Tank]]
|
3
editions/tw5tank/tiddlers/system/SiteSubtitle.tid
Normal file
3
editions/tw5tank/tiddlers/system/SiteSubtitle.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: SiteSubtitle
|
||||||
|
|
||||||
|
for Tank
|
3
editions/tw5tank/tiddlers/system/SiteTitle.tid
Normal file
3
editions/tw5tank/tiddlers/system/SiteTitle.tid
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
title: SiteTitle
|
||||||
|
|
||||||
|
TiddlyWiki in the Sky
|
10
editions/tw5tank/tiddlywiki.info
Normal file
10
editions/tw5tank/tiddlywiki.info
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"plugins": [
|
||||||
|
"tiddlywiki/fullscreen",
|
||||||
|
"tiddlywiki/tiddlyweb"
|
||||||
|
],
|
||||||
|
"themes": [
|
||||||
|
"tiddlywiki/vanilla",
|
||||||
|
"tiddlywiki/snowwhite"
|
||||||
|
]
|
||||||
|
}
|
23
tankbld.cmd
Normal file
23
tankbld.cmd
Normal 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
23
tankbld.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user