I spent a few hours this week putting together 122 lines of bash code to convert old Wordpress and Django articles into my next gemlog.
About 160 articles are suitable for porting from RSS Feed and JSON export.
I've used pandoc, gemgen, sed, jq, grep, recode, xmlstarlet for conversions and a-h/gemini go server to test the output.
Working at the index today: it's amazing that an append by two differents script and then a sort -r can make a decent index if you use the date --iso format as .gmi file prefix.
Older article atm is from 2007. I'll dig deeper, looking for even older chunks of memories to make this a time capsule. ^^
7 months ago ยท ๐ digbat
Not perfect, but finally online at gemini://chirale.org/ ยท 6 months ago
Thank you m0xee, I'll try it! Since I've not found Dockerfile here's a draft: it builds, but it have to be tested and expanded.
FROM nginx:stable-alpine
RUN apk update && apk add --no-cache git && apk add build-base openssl-dev libevent-dev bison
RUN git clone https://github.com/omar-polo/gmid.git
WORKDIR gmid
RUN ./configure && make && make install ยท 7 months ago
https://github.com/omar-polo/gmid.git
gmid gemini server that I use for my capsule can generate on-the-fly indices for directories the same way an http server would, e.g.: gemini://m0xEE.Net/pub/
It's no replacement for proper index page, but it's better than nothing in a lot of cases.
I really like this server โ it supports dual stack and multiple hosts, cgi too โ very versatile. And it's in C so should be faster and less resource-hungry than most. I don't think I'm using the latest version though and mine is patched a bit to support IPv6 on older Linux kernels and mixed-case host names, I like it very much! ยท 7 months ago