~xdavidwu/xdavidwu.link

76f8fbfd614d2bea54f125f0a1aeac6ec56c1887 — Pinghao Wu 4 months ago 17c441f
Revert "builds: gemini: use system md2gemini"

This reverts commit 128286ac1562d484989eee3048742431534a297e.
1 files changed, 3 insertions(+), 3 deletions(-)

M .builds/gemini.yml
M .builds/gemini.yml => .builds/gemini.yml +3 -3
@@ 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