Skip to content

Commit

Permalink
OcttKB Cross-Repo Sync (HTML to Raw)
Browse files Browse the repository at this point in the history
  • Loading branch information
octospacc committed Sep 30, 2023
1 parent 41fec08 commit bb5fe8b
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 11 deletions.
5 changes: 3 additions & 2 deletions Wiki-OcttKB/tiddlers/Normal/Saved/_Sites.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230223222804008
creator: Octt
modified: 20230929114739135
modified: 20230929150422727
modifier: Octt
tags:
title: Saved/Sites
Expand Down Expand Up @@ -33,11 +33,12 @@ Note: "[property]-leaning" means the majority of the content of the site, or the

!!! ''[[Gallery]]-leaning''

These are portfolios, collections of projects, hubs, etc.
These are portfolios, collections of projects, hubs, landing pages, etc.

* [[OctoSpacc Hub|https://hub.octt.eu.org]]
* [[Arktis :: Sigve Sebastian Farstad|https://arkt.is/]]
* <<httpL "Neal.fun">>
* [[The Hacker's Choice|https://www.thc.org]] --- group of international hackers, founded in 1995 --- <<[# "Knowledge Base" "https://iq.thc.org">>

!!! ''[[Note]]-leaning''

Expand Down
3 changes: 2 additions & 1 deletion Wiki-OcttKB/tiddlers/Normal/_Static site generator.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230905232949767
creator: Octt
modified: 20230905233603281
modified: 20230930001800458
modifier: Octt
tags:
title: Static site generator
Expand All @@ -10,4 +10,5 @@ title: Static site generator
* <<linkdescgit Docusaurus "https://docusaurus.io" "Easy to maintain open source documentation websites." "https://github.com/facebook/docusaurus">>
* <<linkdescgit Hugo "https://gohugo.io" "The world’s fastest framework for building websites" "https://github.com/gohugoio/hugo">>
* <<linkdescgit Jekyll "https://jekyllrb.com" "🌐 Jekyll is a blog-aware static site generator in Ruby" "https://github.com/jekyll">>
** <<linkdescgit "So Simple [Theme]" "https://mmistakes.github.io/so-simple-theme" " A simple Jekyll theme for words and pictures." "https://github.com/mmistakes/so-simple-theme">>
* <<linkdescgit Retype "https://retype.com" "ultra-high-performance ✨ static website generator that builds a website based on simple Markdown text files" "https://github.com/retypeapp">> --- seems catered towards docs/notes sites
6 changes: 3 additions & 3 deletions Wiki-OcttKB/tiddlers/System/OcttKB/Repo/_PatchStatic.py.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
from base64 import b64encode
from bs4 import BeautifulSoup
from re import sub, DOTALL
from re import sub
from sys import argv

File = argv[-1]
Expand Down Expand Up @@ -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, flags=DOTALL)
Html = sub('<iframe (.+) src="(.+)"><\/iframe>', SafeIframe, Html, flags=DOTALL)
Html = sub('<iframe( +)src="[\S\n\t\v ]+?"><\/iframe>', SafeIframe, Html)
Html = sub('<iframe (.+) src="[\S\n\t\v ]+?"><\/iframe>', SafeIframe, Html)

open(File, 'w').write(Html)
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230307221237990
creator: Octt
modified: 20230929110856571
modified: 20230929145246611
modifier: Octt
title: $:/OcttKB/Repo/PatchStatic.py
type: text/plain
4 changes: 2 additions & 2 deletions Wiki-OcttKB/tiddlers/System/_HistoryList.json.meta
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
created: 20230929115455289
created: 20230930001840040
current-tiddler: GettingStarted
modified: 20230929115455289
modified: 20230930001840040
title: $:/HistoryList
type: application/json
2 changes: 1 addition & 1 deletion Wiki-OcttKB/tiddlers/System/_StoryList.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20230929094559840
creator: Octt
list:
modified: 20230929114115280
modified: 20230930001648015
modifier: Octt
title: $:/StoryList
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
created: 20220920092307479
creator: Octt
modified: 20230929111714424
modified: 20230929145609533
modifier: Octt
title: $:/state/tab/sidebar--595412856

Expand Down

0 comments on commit bb5fe8b

Please sign in to comment.