mirror of
https://gitlab.com/octtspacc/OcttKB
synced 2025-04-13 15:01:58 +02:00
OcttKB Cross-Repo Sync (HTML to Raw)
This commit is contained in:
parent
882ec4fa7a
commit
054fea4e3c
@ -1,5 +1,5 @@
|
||||
created: 20230611205522943
|
||||
created: 20230611213245204
|
||||
current-tiddler: GettingStarted
|
||||
modified: 20230611205522943
|
||||
modified: 20230611213245204
|
||||
title: $:/HistoryList
|
||||
type: application/json
|
@ -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)"
|
||||
|
@ -1,6 +1,6 @@
|
||||
created: 20230611200714094
|
||||
creator: Octt
|
||||
modified: 20230611200732434
|
||||
modified: 20230611213201141
|
||||
modifier: Octt
|
||||
title: $:/OcttKB/Repo/GitLab.CrossRepoSync.sh
|
||||
type: text/plain
|
@ -1,6 +1,6 @@
|
||||
created: 20230611175011888
|
||||
creator: Octt
|
||||
list:
|
||||
modified: 20230611200621985
|
||||
modified: 20230611211426118
|
||||
modifier: Octt
|
||||
title: $:/StoryList
|
@ -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
|
Loading…
x
Reference in New Issue
Block a user