💾 Archived View for gemini.ctrl-c.club › ~lovetocode999 › scripts.gmi captured on 2024-06-16 at 12:54:50. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
A few short scripts that I have written for my own personal use. Feel free to use this for yourself! ;)
--------------------------------------------------------------------------------
A short script to convert entire gemini capsules to websites.
Usage: webify-gemini.sh <Gemini source directory> <HTML source directory> <Capsule address> <Website address> Example: webify-gemini.sh /var/gemini/users/lovetocode999/ /home/lovetocode999/public_html/ gemini://gemini.ctrl-c.club/~lovetocode999/ http://ctrl-c.club/~lovetocode999/
This script also creates three files in the specified HTML directory:
After the first run these files will not be touched by the script again (unless they are deleted), thereby allowing the user to do whatever they like with them. Note that HTML has no way of sourcing files, so the header and footer are inserted into the HTML when the script is run, meaning user-created files will not be affected and the changes to the header and footer will not show until the script is run again.
--------------------------------------------------------------------------------