Giter VIP home page Giter VIP logo

gmi2html's Introduction

gmi2html

A tiny executable that does one job well.

Why?

Currently, it is nice to be able to serve content on gemini on the web too. Writing everything twice is a waste of time, so just write it for gemini and then translate it to HTML.

Usage

Input is accepted from stdin and output written to stdout.

$ gmi2html < input.gmi > output.html

Building and Installing

To build

$ zig build

Build options:

  • -Drelease-safe leaves safety checks so bugs lead to errors instead of undefined behaviour.
  • -Drelease-small slightly slower but much smaller binary, especially with -Dstrip.
  • -Drelease-fast fastest possible binary.

To install, you need zig 0.10.0 or 0.10.1 (other versions might work but I haven't tested them) then run

$ zig build --prefix /usr install

Use one of the build modes when installing so the debug code isn't left in.

To build and install the man pages you need scdoc:

$ scdoc < doc/gmi2html.scdoc > doc/gmi2html.1
# install doc/gmi2html.1 /usr/share/man/man1/gmi2html.1

It is also available on the AUR as gmi2html.

Contributing

See CONTRIBUTING.md.

Licensing

gmi2html is released under the MIT license.

gmi2html's People

Contributors

shtanton avatar eggplants avatar bratishkaerik avatar sikmir avatar techboyg5 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.