A short script to convert entire gemini capsules to websites. http://ctrl-c.club/~lovetocode999/scripts.html
Go to file
Lovetocode999 d53d80cb4b Replace special characters with their HTML equivalents 2021-03-01 09:52:36 -07:00
LICENSE Initial commit 2021-02-28 08:22:09 -07:00
README.md Clarify certain 'quirks' about script-generated files 2021-03-01 06:55:50 -07:00
webify-gemini.sh Replace special characters with their HTML equivalents 2021-03-01 09:52:36 -07:00

README.md

webify-gemini.sh

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:

  • style.css: This file controls the styling of the generated website.
  • footer.html: Specifies a site-wide footer
  • header.html: Specifies a site-wide header

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 sourceing 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.