-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add new edition for Tank, along with a build script
- Loading branch information
Jermolene
committed
Feb 12, 2014
1 parent
d56eec4
commit 1a8d681
Showing
8 changed files
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: $:/DefaultTiddlers | ||
|
||
[[TiddlyWiki5 for Tank]] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: SiteSubtitle | ||
|
||
for Tank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
title: SiteTitle | ||
|
||
TiddlyWiki in the Sky |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"plugins": [ | ||
"tiddlywiki/fullscreen", | ||
"tiddlywiki/tiddlyweb" | ||
], | ||
"themes": [ | ||
"tiddlywiki/vanilla", | ||
"tiddlywiki/snowwhite" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
I think you want
TiddlyWiki for Tank
here, based on changes elsewhere?