| Sources | https://github.com/tinkerator/mdweb |
|---|
The mdweb program is a
local webserver for serving up rendered .md files and other
content. It converts .md files to HTML in order to render them with
customized fonts and site style (both of
these files are embedded into the mdweb binary at build time).
To use mdweb for the first time, just run these commands:
$ git clone https://github.com/tinkerator/mdweb.git
$ cd mdweb
$ go get
$ go build
$ ./mdweb
By default, mdweb listens to localhost:8080 and serves files
rooted in the working directory. You can override these defaults with
the --addr and --base arguments respectively. As a first example,
when run from this present directory, point your browser to
http://localhost:8080/README.md.
A convenient way to make use of this tool is to install it in your
~/go/bin directory with the following command:
$ go install mdweb.go
The, if you have ~/go/bin in your $PATH variable, you can just run
it when you need it with:
$ mdweb
The mdweb program is distributed with the same BSD 3-clause license
as that used by golang itself.
The program mdweb has been developed purely out of self-interest and
a desire to quickly render .md files. If you find a bug or want to
suggest a feature addition, please use the bug
tracker.