aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 1a777e601090f96ed30c5510853692b432bb5afa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Gemini To XHTML(XML)
This is a very simple gemini to xml generator written in C.

# About
The g2x executable is a single file to file xml generator, there's a handy script named c2x (capsule 2 xhtml), that generates the entire capsule in XHTML for you, then you can use your favourite web server to host it.

# Example
Check this [my website](https://ariamath.xyz).

# License
See LICENSE file for more information.

# Contribute
Send me your patches on [email](mailto:sabr@ariamath.xyz) or [xmpp](xmpp:sabr@ariamath.xyz).

Though this tool is pretty much perfect already... I guess?

# Usage
You use your shell pipes '>' and '<'.

- Generate one html from gmi file
```
./g2h < index.gmi > index.html
```
- Generate a whole ass mfkin gemsite
```
./c2x "<gemsite_root>"
```
without the "/"... btw.

That's it, just add your style.css at the *_xhtml root and you got XHTML! HELL YEAH! Hhhmm... I mean HTML is kinda messed up and you should always just use XHTML.

# Addenum
I thought I might add how I work. I have my gemsite as a git repo where I have a post-receive hook that copies my gemsite to a gemsite folder, and then it runs `c2x` on the gemsite root folder and I get a `gemsite_xhtml` folder, being the XHTML root. Then I just nginx and you know the deal.