markdown Web 服務器:Lanyon

jopen 10年前發布 | 36K 次閱讀 Lanyon Web服務器

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.

項目主頁:http://www.baiduhome.net/lib/view/home/1399600299400

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!