gmitohtml-upstream/README.md

40 lines
1.1 KiB
Markdown
Raw Normal View History

2020-11-21 17:53:04 +01:00
# gmitohtml
2020-11-23 02:54:44 +01:00
[![GoDoc](https://gitlab.com/tslocum/godoc-static/-/raw/master/badge.svg)](https://docs.rocketnine.space/gitlab.com/tslocum/gmitohtml)
2020-11-21 17:53:04 +01:00
[![CI status](https://gitlab.com/tslocum/gmitohtml/badges/master/pipeline.svg)](https://gitlab.com/tslocum/gmitohtml/commits/master)
[![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space)
2020-11-23 02:54:44 +01:00
[Gemini](https://gemini.circumlunar.space) to [HTML](https://en.wikipedia.org/wiki/HTML)
conversion tool and daemon
2020-11-21 17:53:04 +01:00
## Download
gmitohtml is written in [Go](https://golang.org). Run the following command to
download and build gmitohtml from source.
```bash
go get gitlab.com/tslocum/gmitohtml
```
The resulting binary is available as `~/go/bin/gmitohtml`.
## Usage
Convert a single document:
```bash
gmitohtml < document.gmi
```
Run as daemon at `http://localhost:8080`:
```bash
# Start the daemon:
gmitohtml --daemon=localhost:8080
# Access via browser:
xdg-open http://localhost:8080/gemini/twins.rocketnine.space/
```
## Support
Please share issues and suggestions [here](https://gitlab.com/tslocum/gmitohtml/issues).