From 76f8fbfd614d2bea54f125f0a1aeac6ec56c1887 Mon Sep 17 00:00:00 2001 From: Pinghao Wu Date: Mon, 12 Aug 2024 10:21:18 +0800 Subject: [PATCH] Revert "builds: gemini: use system md2gemini" This reverts commit 128286ac1562d484989eee3048742431534a297e. --- .builds/gemini.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.builds/gemini.yml b/.builds/gemini.yml index 8d6f952..5f41d56 100644 --- a/.builds/gemini.yml +++ b/.builds/gemini.yml @@ -3,11 +3,11 @@ oauth: pages.sr.ht/PAGES:RW packages: - py3-pip - hut - - md2gemini - yq tasks: - tools: | - find /usr/lib -name 'renderers.py' -exec sed -i -E 's/text\.rstrip\(\)\.endswith\("\[" \+ str\(self\.footnote_num\) \+ "\]"\)/False/' {} \; + pip3 install md2gemini --break-system-packages + find ~/.local -name 'renderers.py' -exec sed -i -E 's/text\.rstrip\(\)\.endswith\("\[" \+ str\(self\.footnote_num\) \+ "\]"\)/False/' {} \; - generate: | cd xdavidwu.link/_posts for i in $(ls -r *.md);do @@ -27,6 +27,6 @@ tasks: IFS=$OIFS echo "=> $(echo $i | sed s/\.md$/.gmi/) $(echo $i | cut -f 1-3 -d '-'): $(grep '^title:' $i | yq .title)" >> ../gemini/index.gmi done - md2gemini -w -d ../gemini -a -f -i tab -l paragraph *.md + ~/.local/bin/md2gemini -w -d ../gemini -a -f -i tab -l paragraph *.md - publish: | hut pages publish xdavidwu.link/gemini -d xdavidwu.link -p GEMINI -- 2.45.2