mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 15:54:50 +00:00
24 lines
528 B
Bash
24 lines
528 B
Bash
|
#!/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
|