blob: 49f49787ccddb6302e9def0af2dc6b7af5d7b86e (
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
|
# mdrd
Simple CGI Markdown renderer.
## Building
Requirements:
* cmark
* fcgi
```shell
$ make -j all
```
## 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.
|