blob: 72efcdcac571affceaff57774b9a1f36d3e4aa56 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# mdrd
Simple CGI Markdown renderer.
## Building
Requirements:
* cmark
* fcgi
* cmake
* pkgconfig
```shell
$ mkdir cmake-build-release/
$ cd cmake-build-release/
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make -j mdrd
```
## Running
Start a FCGI parent process:
```shell
$ spawn-fcgi -p 8080 -n ./mdrd
```
Setup your web server with document root, fastcgi parameters and fastcgi port. Nginx example:
```
server {
root /path/to/markdown/root;
autoindex on;
index index.html index.md;
location ~ \.md$ {
include fastcgi_params;
fastcgi_pass 127.0.0.1:8080;
}
}
```
You are ready to go.
## License
WTFPL. Experimental project. No warranty.
|