1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 12:07:19 +00:00
TiddlyWiki5/tw5.sh
Jeremy Ruston af7b69e778 Refactored linkMassager mechanism
Now the link massager can control the HTML attributes of the link, and
suppress it entirely if necessary. Using this new facility to generate
a cleaner readme file for github
2012-04-07 12:10:46 +01:00

24 lines
548 B
Bash
Executable File

#!/bin/sh
# build TiddlyWiki5
# create a temporary directory if it doesn't already exist
mkdir -p tmp
mkdir -p tmp/tw5
# cook TiddlyWiki5
node tiddlywiki.js \
--recipe $PWD/tiddlywiki5/tiddlywiki5.recipe \
--store tiddlywiki5/store \
--savewiki tmp/tw5 \
--links none \
--savetiddler ReadMe readme.md \
|| exit 1
# cook a static version too
#mkdir -p tmp/tw5/static
#node tiddlywiki.js --recipe $PWD/tiddlywiki5/tiddlywiki5.recipe --savehtml tmp/tw5/static
# open the result
#open -a /Applications/Google\ Chrome.app tmp/tw5/index.html