OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-09-29 11:55:01 +00:00
parent e75341ad6b
commit 41fec08841
15 changed files with 34 additions and 24 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from base64 import b64encode
from bs4 import BeautifulSoup
from re import sub
from re import sub, DOTALL
from sys import argv
File = argv[-1]
@@ -29,7 +29,7 @@ def SafeIframe(m):
Html = str(BeautifulSoup(open(File, 'r'), 'html5lib'))
Html = sub('<details><a name="(.+)"><summary>(.+)<\/summary>\s*<\/a>', Fix1, Html)
Html = sub('<iframe( +)src="(.+)"><\/iframe>', SafeIframe, Html)
Html = sub('<iframe (.+) src="(.+)"><\/iframe>', SafeIframe, Html)
Html = sub('<iframe( +)src="(.+)"><\/iframe>', SafeIframe, Html, flags=DOTALL)
Html = sub('<iframe (.+) src="(.+)"><\/iframe>', SafeIframe, Html, flags=DOTALL)
open(File, 'w').write(Html)

View File

@@ -1,6 +1,6 @@
created: 20230307221237990
creator: Octt
modified: 20230307221722752
modified: 20230929110856571
modifier: Octt
title: $:/OcttKB/Repo/PatchStatic.py
type: text/plain

View File

@@ -1,6 +1,6 @@
created: 20230225150051400
creator: Octt
modified: 20230226210519405
modified: 20230929111702131
modifier: Octt
tags: $:/tags/Stylesheet
title: $:/Styles/Static/Main
@@ -13,5 +13,6 @@ title: $:/Styles/Static/Main
<<River>> > a[name]/*:not(a[name="~Welcome~"])*/ + <<Frame>> { <<NoDisp>> }
<<River>> > a[name]:target + <<Frame>> { display: block; }
<<River>> > <<Frame>> .tc-tiddler-controls,
<<River>> > <<Frame>> .gk0wk-notionbg-addbuttons,
<<River>> > <<Frame>> .gk0wk-notionpageb-changecover { <<NoDisp>> }

View File

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

View File

@@ -1,7 +1,7 @@
created: 20220920084517972
creator: Octt
modified: 20230928233243105
modified: 20230929094726342
modifier: Octt
title: $:/SiteSubtitle
Octt Knowledge Base || (Start at ➡️ [[OcttKB]] 📌️)
Octt Knowledge Base || (Start at ➡️ <span>[</span>[[OcttKB]]<span>]</span> 📌️)

View File

@@ -1,6 +1,6 @@
created: 20230928222850710
created: 20230929094559840
creator: Octt
list:
modified: 20230928233650700
modified: 20230929114115280
modifier: Octt
title: $:/StoryList

View File

@@ -0,0 +1,7 @@
created: 20230929113750196
creator: Octt
modified: 20230929113751643
modifier: Octt
title: $:/state/folded/JavaScript
show

View File

@@ -1,6 +1,6 @@
created: 20220920092307479
creator: Octt
modified: 20230928231912353
modified: 20230929111714424
modifier: Octt
title: $:/state/tab/sidebar--595412856

View File

@@ -1,7 +1,7 @@
created: 20230219190716748
creator: Octt
modified: 20230926073123828
modified: 20230929095018016
modifier: Octt
title: $:/state/tree/$:/OcttKB/Repo/
hide
show

View File

@@ -1,7 +1,7 @@
created: 20230111084703963
creator: Octt
modified: 20230928222844438
modified: 20230929095013632
modifier: Octt
title: $:/state/tree/$:/OcttKB/
hide
show

View File

@@ -1,7 +1,7 @@
created: 20230225173056823
creator: Octt
modified: 20230920144629428
modified: 20230929111305954
modifier: Octt
title: $:/state/tree/$:/Styles/Static/
hide
show

View File

@@ -1,7 +1,7 @@
created: 20230108193801573
creator: Octt
modified: 20230920153341608
modified: 20230929111257602
modifier: Octt
title: $:/state/tree/$:/Styles/
hide
show