markdown Web 服务器:Lanyon
Lanyon是一个简单的Web服务器,它能够读取存有markdown文件的目录,然后将这些markdown文件转换成HTML展示。提供一种直观和简便的方式来创建一个网站。
{ "PortNum": 9999, "TemplateDir": "templates", "PublicDir": "public", "RedirectDomain": ["www.mkaz.com", "www.mkaz.com"] }
PortNum - [required] the port number for the web server to listen to, if you set to port 80 it will require being started by root user who has permission
TemplateDir - [required] the directory which holds the template files, accepts a full path, or relative to lanyon start directory. Directories can include the trailing slash.
PublicDir - [required] the directory which holds the main site's markdown files. This is your web server root, all assets are also included in here. Accepts a full path, or relative to lanyon start directory.
RedirectDomain - [optional] A tuple of domains which if specified, checks to see if the requested domain matches the first, if the domain does not match, issues a redirect to the second domain.