mudkip
V2EX  ›  问与答

Dropbox + Jekyll + Github Pages

  •  
  •   mudkip · Apr 23, 2012 · 4829 views
    This topic created in 5172 days ago, the information mentioned may be changed or developed.
    最近很喜欢在 iPad 上写东西,希望有一个便捷的方式发布到 Jekyll-Bootstrap 搭建的 Pages 上。

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

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

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

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

    感觉 lz 的需求很像 calepin.co 以及 http://scriptogr.am/
    9hills
        4
    9hills  
       Apr 24, 2012
    @dofine calepin.co + 1,scriptogr.am搞不定disqus评论的式样,放弃了。。
    Aether
        5
    Aether  
       Apr 24, 2012
    请楼主移步到 jekyll 节点, 传送门:
    http://www.v2ex.com/go/jekyll
    fanzheng
        6
    fanzheng  
       Jun 3, 2012
    @9hills scriptogr.am 可以搞成disqus呢,编辑主题一下就好了。
    成品 http://scriptogr.am/fanzheng/post/hello
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3585 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 04:58 · PVG 12:58 · LAX 21:58 · JFK 00:58
    ♥ Do have faith in what you're doing.