Okay, that's enough progress for today on the rewrite of my to conversion pipeline.

Added a pre-processor that allows me to add ,gemini=hidden to links I don't want to show up in the gmi document, and ,gemini=extend-to-eol for links I want to extend to the end of the line.

I don't expect others to find this useful, but so far it looks like it will help reduce link clutter in documents, without having to handcraft a version of the same blog post.

Follow

@FiXato Is the code for your to conversion pipeline available somewhere? I'd love to use it and maybe help improve it, if I can!

@DuncanLock git.sr.ht/~fixato/gemini-tools but it's been a while since I last pushed changes and it's fairly undocumented.

@DuncanLock yeah, looks like I have a whole bunch of uncommitted changes locally, including support for a config file and a bunch of replacement fixes; I'll see if I can clean those up and push them to the sourcehut repo today :)

@FiXato I got this working like this:

$ git clone git.sr.ht/~fixato/gemini-tools
$ cd gemini-tools/
$ python3 -m venv ~/venv/gemini-tools
$ source ~/venv/gemini-tools/bin/activate
$ python -m pip install -r ./requirements.txt

then:

$ python -m pip install xdg python-slugify md2gemini

.. and it seems to work pretty well! Thanks!

@DuncanLock yeah, that sounds about right :)
Reminds me that I need to add those last two packages to the requirements.txt :)

Sorry I haven't been able to add the latest changes yet though; haven't really had the headspace to code much the past couple of days :/

Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!