Skip to content

A tool to convert Gemini capsule to web site.

Notifications You must be signed in to change notification settings

cranej/gem2site

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

gem2site is a tool to convert Gemini site(or capsule in Gemini's term) to web site.

Given a Gemini capsule like the following:

my_capsule
    - index.gmi
    - posts
      - post-1.gmi
    - articles
      - article-1.gmi
    - mypdf.pdf

gem2site my_capsule my_site produce contents under my_site:

my_site
    - index.html
    - posts
      - post-1.html
    - articles
      - article-1.html
    - mypdf.pdf
  • Folder structure kept the same as source
  • .gmi files got translated to html
  • Other files are copied intact

Status

I'm already using it for my personal site, but there are still some work to do.

TODOs

  • Customizable template
    • embed a default template
    • option to dump default template
    • option to specify template to use
    • option to specify external css link
  • optional convert image/video/audio links to corresponding html tags

About

A tool to convert Gemini capsule to web site.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published