OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
octospacc 2023-04-13 13:48:38 +00:00
parent b75b21427c
commit fecf97de73
23 changed files with 92 additions and 50 deletions

View File

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

View File

@ -1,7 +1,7 @@
Enabled: 1 Enabled: 1
created: 20230413083119554 created: 20230413083119554
creator: Octt creator: Octt
modified: 20230413093847513 modified: 20230413124203473
modifier: Octt modifier: Octt
tags: $:/GlobalOption tags: $:/GlobalOption
title: $:/OcttKB/Config/AiLinks.ui title: $:/OcttKB/Config/AiLinks.ui

View File

@ -1,7 +1,7 @@
created: 20230413080548417 created: 20230413080548417
creator: Octt creator: Octt
list-before: $:/core/ui/SideBarSegments/search list-before: $:/core/ui/SideBarSegments/search
modified: 20230413093838715 modified: 20230413124924940
modifier: Octt modifier: Octt
tags: $:/tags/SideBarSegment tags: $:/tags/SideBarSegment
title: $:/OcttKB/GlobalOptions.ui title: $:/OcttKB/GlobalOptions.ui
@ -15,6 +15,12 @@ title: $:/OcttKB/GlobalOptions.ui
</$set> </$set>
</$set>) </$set>)
</summary> </summary>
<style>
label {
display: inline-block;
width: 100%;
}
</style>
{{$:/OcttKB/Config/LargeSidebar.ui}} {{$:/OcttKB/Config/LargeSidebar.ui}}
<br/><br/> <br/><br/>
{{$:/OcttKB/Config/AiLinks.ui}} {{$:/OcttKB/Config/AiLinks.ui}}

View File

@ -1,12 +0,0 @@
#!/bin/sh
cd ./public
# Build single-page no-JS wiki
tiddlywiki \
--load index.html \
--output ./ \
--rendertiddler $:/core/templates/static.template.css Style.css text/plain \
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
# Apply patches to the static HTML
python3 ../PatchStatic.py

View File

@ -1,6 +0,0 @@
created: 20230126082147025
creator: Octt
modified: 20230307221654772
modifier: Octt
title: $:/OcttKB/Repo/Build.sh
type: text/plain

View File

@ -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

View File

@ -1,6 +0,0 @@
created: 20230126082330667
creator: Octt
modified: 20230126082445095
modifier: Octt
title: $:/OcttKB/Repo/DeployOld.sh
type: text/plain

View File

@ -0,0 +1,24 @@
#!/bin/sh
ToLower(){
echo "$1" | tr "[:upper:]" "[:lower:]"
}
SetupGitProfile(){
git config --global user.email "$GitUserEmail"
git config --global user.name "$GitUserName"
git config --global credential.helper store
echo "https://$GitUserName:$GitPassword@gitlab.com" > ~/.git-credentials
}
TryCrossRepoSync(){
CommitCheck="$(git log -1 --pretty=%B | ToLower)"
CommitMsg0="$("OcttKB Cross-Repo Sync" | ToLower)"
[ "$CommitCheck" != "$CommitMsg0 (html to raw)" ] && \
[ "$CommitCheck" != "$CommitMsg0 (raw to html)" ] && \
[ "$CommitCheck" != "$CommitMsg0 (htm to raw)" ] && \
[ "$CommitCheck" != "$CommitMsg0 (raw to htm)" ] && \
[ "$CommitCheck" != "$CommitMsg0 (web to raw)" ] && \
[ "$CommitCheck" != "$CommitMsg0 (raw to web)" ] && \
sh ./GitLab.CrossRepoSync.sh || true
}

View File

@ -0,0 +1,6 @@
created: 20230413125137469
creator: Octt
modified: 20230413134713676
modifier: Octt
title: $:/OcttKB/Repo/Lib.Git.sh
type: text/plain

View File

@ -1,3 +1,4 @@
#!/bin/sh #!/bin/sh
sh ./Build.sh . ./Lib.*.sh
sh ./DeployOld.sh || true sh ./Pages.BuildStatic.sh
sh ./Pages.DeployOld.sh

View File

@ -1,6 +1,6 @@
created: 20230126081754717 created: 20230126081754717
creator: Octt creator: Octt
modified: 20230228095521738 modified: 20230413134700295
modifier: Octt modifier: Octt
tags: tags:
title: $:/OcttKB/Repo/Main.sh title: $:/OcttKB/Repo/Main.sh

View File

@ -0,0 +1,12 @@
#!/bin/sh
cd ./public
# Build single-page no-JS wiki
tiddlywiki \
--load ./index.html \
--output ./ \
--rendertiddler $:/core/templates/static.template.css Style.css text/plain \
--rendertiddler $:/core/templates/alltiddlers.template.html Static.html text/plain
# Apply patches to the static HTML
python3 ../PatchStatic.py

View File

@ -0,0 +1,6 @@
created: 20230126082147025
creator: Octt
modified: 20230413132417618
modifier: Octt
title: $:/OcttKB/Repo/Pages.BuildStatic.sh
type: text/plain

View File

@ -0,0 +1,5 @@
#!/bin/sh
URL="https://kb.octt.eu.org"
cd ./public
wget -O ./-1.html "$URL" || true
wget -O ./-2.html "$URL/-1.html" || true

View File

@ -0,0 +1,6 @@
created: 20230126082330667
creator: Octt
modified: 20230413132501058
modifier: Octt
title: $:/OcttKB/Repo/Pages.DeployOld.sh
type: text/plain

View File

@ -1,5 +1,3 @@
#!/bin/sh #!/bin/sh
git config --global user.email "$GitUserEmail" . ./Lib.Git.sh
git config --global user.name "$GitUserName" SetupGitProfile
git config --global credential.helper store
echo "https://$GitUserName:$GitPassword@gitlab.com" > ~/.git-credentials

View File

@ -1,6 +1,6 @@
created: 20230228081951095 created: 20230228081951095
creator: Octt creator: Octt
modified: 20230228082144682 modified: 20230413134641576
modifier: Octt modifier: Octt
tags: tags:
title: $:/OcttKB/Repo/SetupGitProfile.sh title: $:/OcttKB/Repo/SetupGitProfile.sh

View File

@ -1,6 +1,6 @@
created: 20230413075905806 created: 20230413124212673
creator: Octt creator: Octt
list: list: $:/OcttKB/Repo
modified: 20230413093628410 modified: 20230413134703735
modifier: Octt modifier: Octt
title: $:/StoryList title: $:/StoryList

View File

@ -1,6 +1,6 @@
created: 20220920174307633 created: 20220920174307633
creator: Octt creator: Octt
modified: 20230307214152122 modified: 20230413132635748
modifier: Octt modifier: Octt
title: $:/state/sidebar title: $:/state/sidebar

View File

@ -1,7 +1,7 @@
created: 20220920092307479 created: 20220920092307479
creator: Octt creator: Octt
modified: 20230413093903344 modified: 20230413124520866
modifier: Octt modifier: Octt
title: $:/state/tab/sidebar--595412856 title: $:/state/tab/sidebar--595412856
OcttKB/Index $:/core/ui/SideBar/More

View File

@ -0,0 +1,7 @@
created: 20230413132442513
creator: Octt
modified: 20230413134703183
modifier: Octt
title: $:/state/tree/$:/OcttKB/Repo/Lib/
show

View File

@ -1,3 +1,3 @@
title: $:/status/RequireReloadDueToPluginChange title: $:/status/RequireReloadDueToPluginChange
yes no

View File

@ -1,7 +1,7 @@
created: 20220920114844259 created: 20220920114844259
creator: Octt creator: Octt
modified: 20230413093851446 modified: 20230413132638250
modifier: Octt modifier: Octt
title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth title: $:/themes/tiddlywiki/vanilla/metrics/sidebarwidth
280px 50vw