diff --git a/.meta b/.meta new file mode 100644 index 0000000..2de8754 --- /dev/null +++ b/.meta @@ -0,0 +1,4 @@ +org/*.org: text/plain +misc/*: text/plain +pgp: text/plain + diff --git a/gmi/docker/run-wrapper.sh b/gmi/docker/run-wrapper.sh index 01abaf0..7a86cbb 100755 --- a/gmi/docker/run-wrapper.sh +++ b/gmi/docker/run-wrapper.sh @@ -2,7 +2,7 @@ crond -f -d 8 & tail -f /var/log/git.log & -agate --content dongdigua.github.io/gmi -e --hostname $GEMINI_HOST +agate -eC --content dongdigua.github.io --hostname $GEMINI_HOST wait -n echo $? diff --git a/gmi/docker/update-git.sh b/gmi/docker/update-git.sh index 16cc912..11e9e2d 100755 --- a/gmi/docker/update-git.sh +++ b/gmi/docker/update-git.sh @@ -2,3 +2,4 @@ cd /dongdigua.github.io git pull --rebase >> /var/log/git.log 2>&1 +python misc/mdlist2gmi.py > posts.gmi diff --git a/index.gmi b/index.gmi new file mode 100644 index 0000000..028b6ee --- /dev/null +++ b/index.gmi @@ -0,0 +1,6 @@ +~dongdigua + +(a fancy homepage coming soon) + +=> posts posts +=> https://dongdigua.github.io HyperTextMachineLearning site diff --git a/index.html b/index.html index c0bf7f0..492c46b 100644 --- a/index.html +++ b/index.html @@ -47,6 +47,10 @@ (Lost (In (Suspicious (Parentheses))))))))

+
+    

+Gemini available! gemini://shenjack.top
+    

diff --git a/misc/mdlist2gmi.py b/misc/mdlist2gmi.py new file mode 100755 index 0000000..09559c0 --- /dev/null +++ b/misc/mdlist2gmi.py @@ -0,0 +1,30 @@ +#! /usr/bin/env python3 + +import re + +def concat_gmi(link, name): + return "=> " + link + "\t" + name + + +f = open("posts.md") +lines = f.readlines() + +regxp = re.compile("- \[(.+)\]\((.+)\)
") + +for l in lines: + if l == "### Long Term Update\n": + print("") + print(l, end="") + + match = regxp.match(l) + if match: + link = match.group(2) + if re.match(".+\.[a-z]+\.txt$", link): + link = link[:-4] + else: + link = "org/" + link + ".org" + + print(concat_gmi(link, match.group(1))) + + +f.close() diff --git a/patches/txt.sh b/patches/txt.sh index 38e4996..68f2e76 100755 --- a/patches/txt.sh +++ b/patches/txt.sh @@ -1,5 +1,9 @@ #! /bin/sh -ls gmi | xargs -I {} ln -s gmi/{} gmi/{}.txt -ln -s code/lol.diff lol.diff.txt +set -x + +cd gmi +ls *.gmi | xargs -I {} ln -s {} {}.txt +cd .. +ln -s lol.diff misc/lol.diff.txt ln -s pgp pgp.txt diff --git a/posts.md b/posts.md index 08e2c12..ff68fba 100644 --- a/posts.md +++ b/posts.md @@ -32,8 +32,6 @@ any kind of contribution is welcome --- ### Long Term Update -- [大概是语文知识整理](digua-YW)
-Big project - [\[Mirror\] My kernel config recipe](kernel)
- [Gopher/Gemini reactions](gmi/re.gmi.txt)
- [Gopher/Gemini collections, a quiet web](gmi/collections.gmi.txt)