From 943dcd756761aa8f2934f744f887919a625e8f80 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 11 Sep 2023 09:26:58 +0100 Subject: [PATCH] Fix build process We build a separate tour.html wiki, but can include the tour in other wikis too --- bin/build-site.sh | 26 +++++++++++++++++-- .../tiddlers/hellothere/HelloThere.tid | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/bin/build-site.sh b/bin/build-site.sh index 03d4ecdee..928b15d85 100755 --- a/bin/build-site.sh +++ b/bin/build-site.sh @@ -96,12 +96,12 @@ echo -e -n "title: $:/build\ncommit: $TW5_BUILD_COMMIT\n\n$TW5_BUILD_DETAILS\n" # /static/static.css Static stylesheet # /static/favicon.ico Favicon for static pages node $TW5_BUILD_TIDDLYWIKI \ - ./editions/tour \ + $TW5_BUILD_MAIN_EDITION \ --verbose \ --version \ --load $TW5_BUILD_OUTPUT/build.tid \ --output $TW5_BUILD_OUTPUT \ - --build index \ + --build favicon static index \ || exit 1 # /empty.html Empty @@ -136,6 +136,28 @@ node $TW5_BUILD_TIDDLYWIKI \ --build index favicon static \ || exit 1 +# /tour.html tour edition +node $TW5_BUILD_TIDDLYWIKI \ + ./editions/tour \ + --verbose \ + --output $TW5_BUILD_OUTPUT \ + --rendertiddler $:/core/save/all tour.html text/plain \ + || exit 1 + +# /dev/index.html Developer docs +# /dev/favicon.ico Favicon for dev site +# /dev/static.html Static rendering of default tiddlers +# /dev/alltiddlers.html Static rendering of all tiddlers +# /dev/static/* Static single tiddlers +# /dev/static/static.css Static stylesheet +node $TW5_BUILD_TIDDLYWIKI \ + ./editions/dev \ + --verbose \ + --load $TW5_BUILD_OUTPUT/build.tid \ + --output $TW5_BUILD_OUTPUT/dev \ + --build index favicon static \ + || exit 1 + # /share.html Custom edition for sharing via the URL node $TW5_BUILD_TIDDLYWIKI \ ./editions/share \ diff --git a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid index 889f240a2..fdd10f5db 100644 --- a/editions/tw5.com/tiddlers/hellothere/HelloThere.tid +++ b/editions/tw5.com/tiddlers/hellothere/HelloThere.tid @@ -16,7 +16,7 @@ type: text/vnd.tiddlywiki * The ''updated Dynannotate Plugin'' gains the ability to highlight screen elements using an animated spotlight effect ** See the [[Dynannotate Spotlight Demo|$:/plugins/tiddlywiki/dynannotate/examples/spotlight]] - A standalone demo of the tour functionality is [ext[available here|./editions/tour/index.html]]. + A standalone demo of the tour functionality is [ext[available here|./tour.html]].