slw2gmi

slw2gmi is a converter from slweb to Gemini format. Although both are similar to Markdown, the two formats differ enough to warrant a full converter.

Prerequisites

Aside from the obvious (a C compiler, by default GNU C), slw2gmi requires GNU libunistring, realpath(1) to determine paths in local links and groff(1) and gzip(1) to create and compress documentation. git(1) is, aside from cloning the repository, required to use the directive {git-log}.

Install

$ git clone https://git.sr.ht/~strahinja/slw2gmi
$ cd slw2gmi
$ su

Then, if you have apenwarr/redo:

# redo install

if you don't:

# ./do install

You can specify any compiler which uses -Wall, -c, -g and -o like GNU C, most notably tcc(1), by setting the SLW2GMI_CC environment variable. For example:

$ SLW2GMI_CC=tcc redo -j10

In the case of tcc, the tradeoff is that the debug information is limited compared to gcc, but the compilation time is significantly shorter.

TODO (checklist)

See the file TODO for more information.

Bugs and limitations

Bugs can be reported using the ticket tracker. See the manpage (man slw2gmi) after installing slw2gmi for more information.

License

slw2gmi - slweb to Gemini converter Copyright (C) 2021 Страхиња Радић

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.

Previous commit: index.slw d77009b 2021-04-16 12:31:11 +0200 (Страхиња Радић) (HEAD, origin/master, origin/HEAD, master)
Generated by slweb © 2020, 2021 Strahinya Radich.