1 Star 2 Fork 0

涵曦 / md-pages

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
涵曦 提交于 2015-08-15 21:38 . add config readme.

markdown 博客

为小团队内部分享技术文档而生的一个 markdown 博客

运行

  • 启动 http 服务器
$ cd md-pages
$ python SimpleHTTPServer 8000

文件服务器的配置在 config.js

config = {
    blog_name: "博客 ● 文档",
    file_server: "http://"+window.location.hostname+":8001",
};
  • 启动 http file server
$ cd http-file-server
$ mkdir -p files/md
$ python file-server.py 8001

文件服务器

默认使用 http-file-server

文件服务器的需求简单:读取文件夹和文件,上传文件。不喜欢 http-file-server 可以自己实现。

使用云存储也许也是可行的。

感谢

TODO

  • markdown 编辑器编辑和实时预览
  • 编辑器保存文件到服务器
  • 编辑器拖拽上传图片
  • 编辑器缓存未发布的文件
  • 主页和文章页面
  • 主页文档分页加载
  • 预览滚动条带动编辑器滚动条

MORE

http://blog.hanxi.info/?p=10

1
https://gitee.com/hanxi/md-pages.git
git@gitee.com:hanxi/md-pages.git
hanxi
md-pages
md-pages
master

搜索帮助