OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
octospacc 2023-06-11 21:32:45 +00:00
parent 882ec4fa7a
commit 054fea4e3c
5 changed files with 24 additions and 18 deletions

View File

@ -1,5 +1,5 @@
created: 20230611205522943
created: 20230611213245204
current-tiddler: GettingStarted
modified: 20230611205522943
modified: 20230611213245204
title: $:/HistoryList
type: application/json

View File

@ -1,19 +1,25 @@
#!/bin/sh
set -e # Exit on any error
set -x # Echo all commands
# Configuration
TargetWiki="OcttKB"
TargetRepo="OcttKB"
git clone --depth 1 https://gitlab.com/octtspacc/$TargetRepo ./Repo-$TargetRepo
cd ./Repo-$TargetRepo
rm -rf ./Wiki-OcttKB
git clone --depth 1 "https://gitlab.com/octtspacc/$TargetRepo" "./Repo-$TargetRepo"
cd "./Repo-$TargetRepo"
rm -rf "./Wiki-$TargetWiki" || true
tiddlywiki \
--verbose \
--load ../public/index.html \
--output ./Wiki-OcttKB \
--savewikifolder ./Wiki-OcttKB
cd ./Wiki-OcttKB/tiddlers
--load "../$TargetWiki.html" \
--output "./Wiki-$TargetWiki" \
--savewikifolder "./Wiki-$TargetWiki"
cd "./Wiki-$TargetWiki/tiddlers"
mkdir -vp ../Normal ../System
mv \$__* ../System/
mv * ../Normal/
mv \$__* ../System/ || true
mv * ../Normal/ || true
mv ../System ../Normal ./
cd ../..
git add .
git commit -m "OcttKB Cross-Repo Sync (HTML to Raw)"
git push
GitPush "OcttKB Cross-Repo Sync (HTML to Raw)"

View File

@ -1,6 +1,6 @@
created: 20230611200714094
creator: Octt
modified: 20230611200732434
modified: 20230611213201141
modifier: Octt
title: $:/OcttKB/Repo/GitLab.CrossRepoSync.sh
type: text/plain

View File

@ -1,6 +1,6 @@
created: 20230611175011888
creator: Octt
list:
modified: 20230611200621985
modified: 20230611211426118
modifier: Octt
title: $:/StoryList

View File

@ -1,7 +1,7 @@
created: 20220920092307479
creator: Octt
modified: 20230611201422098
modified: 20230611201623892
modifier: Octt
title: $:/state/tab/sidebar--595412856
$:/core/ui/SideBar/Open
$:/core/ui/SideBar/More