mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Introduce new "empty" edition
The old mechanism was clunky
This commit is contained in:
parent
89e38a6547
commit
1b23ecee0f
23
bld.sh
23
bld.sh
@ -1,6 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
# build TiddlyWiki5
|
||||
# build TiddlyWiki5 for five.tiddlywiki.com
|
||||
|
||||
# First, index.html: the main file, including content
|
||||
|
||||
pushd editions/tw5.com > /dev/null
|
||||
|
||||
@ -10,10 +12,23 @@ node ../../core/boot.js \
|
||||
--verbose \
|
||||
--password password \
|
||||
--savetiddler ReadMe ../../readme.md text/html \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/index.html text/plain [!is[shadow]]\
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/empty.html text/plain [!is[shadow]is[shadow]]\
|
||||
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/encrypted.html text/plain [!is[shadow]]\
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/index.html text/plain [!is[shadow]] \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/empty.html text/plain [!is[shadow]is[shadow]] \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/encrypted.html text/plain [!is[shadow]] \
|
||||
--savetiddler $:/core/templates/static.template.html ../../../jermolene.github.com/static.html text/plain \
|
||||
|| exit 1
|
||||
|
||||
popd > /dev/null
|
||||
|
||||
# Second, empty.html: empty wiki for reuse
|
||||
|
||||
pushd editions/empty > /dev/null
|
||||
|
||||
node ../../core/boot.js \
|
||||
--verbose \
|
||||
--password password \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.template.html ../../../jermolene.github.com/empty.html text/plain [!is[shadow]] \
|
||||
--savetiddler $:/core/templates/tiddlywiki5.encrypted.template.html ../../../jermolene.github.com/empty_encrypted.html text/plain [!is[shadow]] \
|
||||
|| exit 1
|
||||
|
||||
popd > /dev/null
|
||||
|
6
editions/empty/tiddlywiki.info
Normal file
6
editions/empty/tiddlywiki.info
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"plugins": [
|
||||
"tiddlywiki/fullscreen",
|
||||
"tiddlywiki/tw2parser"
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue
Block a user