diff --git a/Wiki-OcttKB/tiddlers/System/$__HistoryList.json.meta b/Wiki-OcttKB/tiddlers/System/$__HistoryList.json.meta index 17ab480..feab649 100644 --- a/Wiki-OcttKB/tiddlers/System/$__HistoryList.json.meta +++ b/Wiki-OcttKB/tiddlers/System/$__HistoryList.json.meta @@ -1,5 +1,5 @@ -created: 20230414103300701 +created: 20230414110455438 current-tiddler: GettingStarted -modified: 20230414103300701 +modified: 20230414110455438 title: $:/HistoryList type: application/json \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt similarity index 66% rename from Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt rename to Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt index b781389..a60893d 100644 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt @@ -1,4 +1,5 @@ #!/bin/sh +mkdir -p ./public cd ./public # Build single-page no-JS wiki @@ -10,3 +11,8 @@ tiddlywiki \ # Apply patches to the static HTML python3 ../PatchStatic.py + +# Deploy copies of immediately previous versions +Url="https://kb.octt.eu.org" +wget -O ./-1.html "$Url" || true +wget -O ./-2.html "$Url/-1.html" || true diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt.meta new file mode 100644 index 0000000..b4ee5a6 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_DeployAll.sh.txt.meta @@ -0,0 +1,6 @@ +created: 20230126082147025 +creator: Octt +modified: 20230414105637948 +modifier: Octt +title: $:/OcttKB/Repo/DeployAll.sh +type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt.meta deleted file mode 100644 index dbc684c..0000000 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt.meta +++ /dev/null @@ -1,6 +0,0 @@ -created: 20230413125137469 -creator: Octt -modified: 20230414102929144 -modifier: Octt -title: $:/OcttKB/Repo/Lib.Git.sh -type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt index a154368..f1446ff 100644 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt @@ -1,4 +1,3 @@ #!/bin/sh -. ./Lib.*.sh -sh ./Pages.BuildStatic.sh -sh ./Pages.DeployOld.sh +. ./Src.*.sh || true +sh ./DeployAll.sh diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt.meta index b35af25..6c5b7f7 100644 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt.meta +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Main.sh.txt.meta @@ -1,6 +1,6 @@ created: 20230126081754717 creator: Octt -modified: 20230413134700295 +modified: 20230414104946834 modifier: Octt tags: title: $:/OcttKB/Repo/Main.sh diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt.meta deleted file mode 100644 index ace993c..0000000 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.BuildStatic.sh.txt.meta +++ /dev/null @@ -1,6 +0,0 @@ -created: 20230126082147025 -creator: Octt -modified: 20230413132417618 -modifier: Octt -title: $:/OcttKB/Repo/Pages.BuildStatic.sh -type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt deleted file mode 100644 index df03389..0000000 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -URL="https://kb.octt.eu.org" -cd ./public -wget -O ./-1.html "$URL" || true -wget -O ./-2.html "$URL/-1.html" || true diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt.meta deleted file mode 100644 index e9ae52a..0000000 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Pages.DeployOld.sh.txt.meta +++ /dev/null @@ -1,6 +0,0 @@ -created: 20230126082330667 -creator: Octt -modified: 20230413132501058 -modifier: Octt -title: $:/OcttKB/Repo/Pages.DeployOld.sh -type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt similarity index 93% rename from Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt rename to Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt index ed5b616..43383dd 100644 --- a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Lib.Git.sh.txt +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt @@ -1,9 +1,5 @@ #!/bin/sh -ToLower(){ - echo "$1" | tr "[:upper:]" "[:lower:]" -} - GitPush(){ git add . git commit -m "$1" diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt.meta new file mode 100644 index 0000000..c9c216f --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Git.sh.txt.meta @@ -0,0 +1,6 @@ +created: 20230413125137469 +creator: Octt +modified: 20230414104704258 +modifier: Octt +title: $:/OcttKB/Repo/Src.Git.sh +type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt new file mode 100644 index 0000000..724ab5c --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt @@ -0,0 +1,5 @@ +#!/bin/sh + +ToLower(){ + echo "$1" | tr "[:upper:]" "[:lower:]" +} diff --git a/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt.meta b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt.meta new file mode 100644 index 0000000..b9c2ed0 --- /dev/null +++ b/Wiki-OcttKB/tiddlers/System/$__OcttKB_Repo_Src.Misc.sh.txt.meta @@ -0,0 +1,6 @@ +created: 20230414104412035 +creator: Octt +modified: 20230414104554549 +modifier: Octt +title: $:/OcttKB/Repo/Src.Misc.sh +type: text/plain \ No newline at end of file diff --git a/Wiki-OcttKB/tiddlers/System/$__StoryList.tid b/Wiki-OcttKB/tiddlers/System/$__StoryList.tid index a8aa50a..44c444f 100644 --- a/Wiki-OcttKB/tiddlers/System/$__StoryList.tid +++ b/Wiki-OcttKB/tiddlers/System/$__StoryList.tid @@ -1,6 +1,6 @@ created: 20230414101832787 creator: Octt -list: -modified: 20230414101832787 +list: $:/OcttKB/Repo +modified: 20230414105708998 modifier: Octt title: $:/StoryList \ No newline at end of file