https://github.com/lkiarest/m2h
https://github.com/lkiarest/m2h
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lkiarest/m2h
- Owner: lkiarest
- Created: 2015-09-14T00:35:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T01:12:59.000Z (over 10 years ago)
- Last Synced: 2025-05-29T17:41:58.837Z (about 1 year ago)
- Language: CSS
- Size: 309 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# m2h
使用markdown格式文本直接生成静态文档网站
服务器不需要支持动态脚本,生成后直接发布静态网站
使用方法:
执行 default gulp 任务,在source/content中放置的markdown文档会自动生成content目录下的html文件,同时菜单项会在index中生成,
直接将目录拷贝到服务器中即可。
markdown源文件头需要固定格式,可参考示例。
目录结构:
* conf __配置文件目录__
* less __less文件目录,生成样式__
* resources **图片等资源文件目录**
* source **源文件目录**
* content **markdown内容页目录**
* index.md **首页目录**
* tmpl **模板页目录**
* layout.hogan **布局模板**
* vendor **第三方lib目录**
* gulpfile.js **gulp脚本文件**
* node_modules **npm**