mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2024-12-03 02:40:53 +08:00
some build system fix
- [BUG] `html-body-id-filter` will cause toc not work - collections add tag to mitigate bug above - `ln -s` use CI script instead of in repo
This commit is contained in:
parent
1285a0df01
commit
a4d142fc2b
5
.github/workflows/site.yml
vendored
5
.github/workflows/site.yml
vendored
@ -31,7 +31,8 @@ jobs:
|
|||||||
cd org
|
cd org
|
||||||
make clean
|
make clean
|
||||||
make
|
make
|
||||||
tree ../
|
cd ..
|
||||||
|
./patches/gmi.sh
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v2
|
uses: actions/configure-pages@v2
|
||||||
@ -44,7 +45,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Patch HTML
|
- name: Patch HTML
|
||||||
run: |
|
run: |
|
||||||
tree _site
|
cd _site && tree
|
||||||
sudo ./patches/icons.sh
|
sudo ./patches/icons.sh
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
*.html
|
*.html
|
||||||
*.xml
|
*.xml
|
||||||
|
*.gmi.txt
|
||||||
!index.html
|
!index.html
|
||||||
!xmr.html
|
!xmr.html
|
||||||
!404.html
|
!404.html
|
||||||
|
@ -1 +0,0 @@
|
|||||||
gmi/gopher_collections.gmi
|
|
@ -8,6 +8,9 @@
|
|||||||
#+DATE: <2022-06-05 日>
|
#+DATE: <2022-06-05 日>
|
||||||
|
|
||||||
* 一些(个人)博客收集
|
* 一些(个人)博客收集
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: blog
|
||||||
|
:END:
|
||||||
#+TAGS: rssable(s) rssub(u) gopher(g)
|
#+TAGS: rssable(s) rssub(u) gopher(g)
|
||||||
#+BEGIN_SRC text
|
#+BEGIN_SRC text
|
||||||
_ ___
|
_ ___
|
||||||
@ -278,6 +281,9 @@ use the power of tor:
|
|||||||
今年的新博客, 友链有踏浪
|
今年的新博客, 友链有踏浪
|
||||||
|
|
||||||
* YouTube 收集(没有账号, 这就是我的收藏夹)
|
* YouTube 收集(没有账号, 这就是我的收藏夹)
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: yt
|
||||||
|
:END:
|
||||||
# I think the quality of DT's video is falling
|
# I think the quality of DT's video is falling
|
||||||
** Computer Science
|
** Computer Science
|
||||||
*** [[https://tsoding.org][tsoding]]
|
*** [[https://tsoding.org][tsoding]]
|
||||||
@ -367,6 +373,9 @@ to filing patently fraudulent DMCA counter-notifications to avoid the terminatio
|
|||||||
*** [[https://youtu.be/k35uDHs7Z9E][DT: A Disturbing Descent Into The Mind Of A Mad Man]]
|
*** [[https://youtu.be/k35uDHs7Z9E][DT: A Disturbing Descent Into The Mind Of A Mad Man]]
|
||||||
|
|
||||||
* r
|
* r
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: r
|
||||||
|
:END:
|
||||||
** [[https://www.reddit.com/r/unixporn/][unixporn]]
|
** [[https://www.reddit.com/r/unixporn/][unixporn]]
|
||||||
*** [[https://www.reddit.com/r/unixporn/comments/v6fsui/sway_family_reunionr/][reddit: family reunion]]
|
*** [[https://www.reddit.com/r/unixporn/comments/v6fsui/sway_family_reunionr/][reddit: family reunion]]
|
||||||
*** [[https://www.reddit.com/r/unixporn/comments/wkba0x/jwm_if_i_had_a_pda/][pocket pc]]
|
*** [[https://www.reddit.com/r/unixporn/comments/wkba0x/jwm_if_i_had_a_pda/][pocket pc]]
|
||||||
@ -378,6 +387,9 @@ to filing patently fraudulent DMCA counter-notifications to avoid the terminatio
|
|||||||
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/mr8gqx/new_episode_of_electricianhumor/][New episode of ElectricianHumor]]
|
*** [[https://www.reddit.com/r/ProgrammerHumor/comments/mr8gqx/new_episode_of_electricianhumor/][New episode of ElectricianHumor]]
|
||||||
|
|
||||||
* Mail
|
* Mail
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: mail
|
||||||
|
:END:
|
||||||
#+BEGIN_SRC text
|
#+BEGIN_SRC text
|
||||||
[[[ To any NSA and FBI agents reading my email: please consider ]]]
|
[[[ To any NSA and FBI agents reading my email: please consider ]]]
|
||||||
[[[ whether defending the US Constitution against all enemies, ]]]
|
[[[ whether defending the US Constitution against all enemies, ]]]
|
||||||
@ -389,6 +401,9 @@ to filing patently fraudulent DMCA counter-notifications to avoid the terminatio
|
|||||||
** [[https://lists.gnu.org/archive/html/emacs-devel/2020-10/msg00376.html][Include leaf in Emacs distribution]]
|
** [[https://lists.gnu.org/archive/html/emacs-devel/2020-10/msg00376.html][Include leaf in Emacs distribution]]
|
||||||
|
|
||||||
* Other
|
* Other
|
||||||
|
:PROPERTIES:
|
||||||
|
:CUSTOM_ID: misc
|
||||||
|
:END:
|
||||||
#+BEGIN_COMMENT
|
#+BEGIN_COMMENT
|
||||||
#+END_COMMENT
|
#+END_COMMENT
|
||||||
** [[https://en.wikipedia.org/wiki/Python_(missile)][Python-5]]
|
** [[https://en.wikipedia.org/wiki/Python_(missile)][Python-5]]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
(require 'webfeeder))
|
(require 'webfeeder))
|
||||||
|
|
||||||
;; https://emacs.stackexchange.com/questions/36366/disable-auto-id-generation-in-org-mode-html-export
|
;; https://emacs.stackexchange.com/questions/36366/disable-auto-id-generation-in-org-mode-html-export
|
||||||
|
;; BUG: will cause toc not working, but I don't use much, so just add id manually
|
||||||
(defun html-body-id-filter (output backend info)
|
(defun html-body-id-filter (output backend info)
|
||||||
"Remove random ID attributes generated by Org."
|
"Remove random ID attributes generated by Org."
|
||||||
(when (eq backend 'html)
|
(when (eq backend 'html)
|
||||||
|
3
patches/gmi.sh
Executable file
3
patches/gmi.sh
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
ls gmi | xargs -I {} ln -s gmi/{} {}.txt
|
@ -1,7 +1,7 @@
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
|
|
||||||
# bili_ip
|
# bili_ip
|
||||||
sed -i '6a <link rel="shortcut icon" href=https://www.bilibili.com/favicon.ico>' _site/bili_ip.html
|
sed -i '6a <link rel="shortcut icon" href=https://www.bilibili.com/favicon.ico>' bili_ip.html
|
||||||
|
|
||||||
# magical index
|
# magical index
|
||||||
sed -i '6a <link rel="shortcut icon" href=https://static.wikia.nocookie.net/minecraft_gamepedia/images/5/55/Enchanted_Book.gif>' _site/internet_collections.html
|
sed -i '6a <link rel="shortcut icon" href=https://static.wikia.nocookie.net/minecraft_gamepedia/images/5/55/Enchanted_Book.gif>' internet_collections.html
|
||||||
|
@ -1 +0,0 @@
|
|||||||
gmi/re.gmi
|
|
Loading…
Reference in New Issue
Block a user