V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
mudkip
V2EX  ›  问与答

Dropbox + Jekyll + Github Pages

  •  
  •   mudkip · 2012-04-23 23:55:52 +08:00 · 4261 次点击
    这是一个创建于 4409 天前的主题,其中的信息可能已经有所发展或是发生改变。
    最近很喜欢在 iPad 上写东西,希望有一个便捷的方式发布到 Jekyll-Bootstrap 搭建的 Pages 上。

    想法是这样的,在服务器上有一个脚本,功能是将 Dropbox 上的某个文件夹下的内容和 Jekyll 的 _posts 文件夹同步,然后 git push 到 Github 上。然后在想发布的时候通过浏览器运行这个脚本就可以了。

    不知道大家有没有已经实现的方案 : )
    6 条回复    1970-01-01 08:00:00 +08:00
    napoleonu
        1
    napoleonu  
       2012-04-24 00:00:21 +08:00
    "通过浏览器运行这个脚本"这一步不用做的这么复杂,直接写个计划任务,每15分钟push一次。

    实现起来不难,只是我觉得iPad上写东西,纯 egg pain 。
    9hills
        2
    9hills  
       2012-04-24 00:00:50 +08:00
    服务器上安装Dropbox,然后写个定时任务的脚本用cron跑就好了,当然如果没有改动自然不会有任何行为。

    git add .
    git commit -m "update"
    git push
    dofine
        3
    dofine  
       2012-04-24 00:01:54 +08:00
    既然有服务器的话,就在服务器上装 dropbox, git, jekyll。在 ipad 上写完 md,同步到服务器上,运行 jekyll 就能发布了…或者再 git push 到 github Pages …

    感觉 lz 的需求很像 calepin.co 以及 http://scriptogr.am/
    9hills
        4
    9hills  
       2012-04-24 00:06:30 +08:00
    @dofine calepin.co + 1,scriptogr.am搞不定disqus评论的式样,放弃了。。
    Aether
        5
    Aether  
       2012-04-24 00:40:35 +08:00
    请楼主移步到 jekyll 节点, 传送门:
    http://www.v2ex.com/go/jekyll
    fanzheng
        6
    fanzheng  
       2012-06-03 16:18:04 +08:00
    @9hills scriptogr.am 可以搞成disqus呢,编辑主题一下就好了。
    成品 http://scriptogr.am/fanzheng/post/hello
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5352 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:30 · PVG 14:30 · LAX 23:30 · JFK 02:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.