爱意满满的作品展示区。
96486d9b

一个优雅的博客(笔记)方案

  •  
  •   96486d9b · Jun 9, 2019 · 3005 views
    This topic created in 2593 days ago, the information mentioned may be changed or developed.

    最近想把之前在语雀写的一些笔记同步在 github gh-pages 上,基于这个简单的想法,有了这样的方案。

    框架:

    • 内容写作平台:语雀
    • 托管平台:GitHub
    • 引擎和主题:MkDocs & MkDocs-Material
    • 部署:Travis CI

    特点:

    • 利用语雀,我觉得是当前最好的在线写作平台
      • 支持 markdown,表格,公式,脑图,word excel ppt 等等~
      • 图片等静态资源,就可以不用再本地存储了~
    • 同步简单,几行代码,从语雀同步,提交到 github
    • 环境简单,只基于 py 环境

    流程:

    • 在语雀上写文章~
    • 两行代码,同步语雀,提交更改~

    其他:

    repo 地址: https://github.com/96486d9b/notebook

    预览地址: https://96486d9b.github.io/notebook

    详细文档: https://96486d9b.github.io/notebook/Share/xmbfg0/

    lhx2008
        1
    lhx2008  
       Jun 9, 2019
    事实上有个轮子,https://github.com/x-cold/yuque-hexo,迭代过几版,功能更强大一些。nodejs 也不难装。
    然后,最佳实践的话,你的 py 应该开放一个被调用的的 url,给语雀回调更新文章,然后自动 git 提交上去。
    如果没有自有服务器, 可以考虑 Serverless 开放回调 ,并且调用 Travis CI
    ilay1678
        2
    ilay1678  
       Jun 9, 2019 via Android
    在用 vue-yuque+netlify 全自动部署,还不用服务器
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5571 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 388ms · UTC 07:05 · PVG 15:05 · LAX 00:05 · JFK 03:05
    ♥ Do have faith in what you're doing.