• 请不要在回答技术问题时复制粘贴 AI 生成的内容
hades97
V2EX  ›  程序员

基于 markdown 文件生成网站,可以当作 blog 使用。开发语言是 GO。

  •  1
     
  •   hades97 · Jan 6, 2023 · 4429 views
    This topic created in 1250 days ago, the information mentioned may be changed or developed.

    功能类似于 docsify

    简而言之,就是通过 go 跑了一个 server ,读取你的文件夹内的 markdown 文件,并提供 web 访问。

    放个链接 go-markdown-book

    放两张图 light dark

    Supplement 1  ·  Jan 7, 2023
    补充点信息
    这个项目功能是抄的 https://github.com/gaowei-space/markdown-blog
    然后前端主题设计是抄的 https://github.com/sumimakito/hexo-theme-typography

    我是个 golang 的初学者,水平大概是把官网文档过了一遍。然后在 github 找开源项目来复刻,找到了一个 markdown-blog 的项目,跟着做完之后感觉自己对 golang 又熟悉了不少。
    然后感觉前端样式不太满意,于是开始自己修改,改着改着又发现了 typography ,这就是我想要的
    所以这个项目是并非原创,但是我控制不住自己的分享欲
    Supplement 2  ·  Jan 11, 2023
    版本更新:
    现在支持直接把 github 的仓库作为数据源,只需要把 md 文件上传到 github ,即可实现文章的更新。


    假如你有一个 github 的仓库,里面存了你的 markdown 文档,你只需要把用户名和仓库名填到配置文件里。 使用配置启动之后,会自动读取一次你的 github 仓库,把所有的文档加载到 go 里,后续如果你有 md 文件的改动,只需要访问一次 http://127.0.0.1:5006/update 就可以完成数据的更新
    20 replies    2023-01-07 20:23:14 +08:00
    xshell
        1
    xshell  
       Jan 6, 2023
    赞一个!
    novolunt
        2
    novolunt  
       Jan 6, 2023
    很好看,如果能部署到 fly io 就完美
    BowenYoung
        3
    BowenYoung  
       Jan 6, 2023
    样式参考的是这个[hexo 主题]( https://github.com/sumimakito/hexo-theme-typography)吧?
    BowenYoung
        4
    BowenYoung  
       Jan 6, 2023
    @BowenYoung 如果是的话,感觉不能成为 design(ed) by u...
    perfectlife
        5
    perfectlife  
       Jan 6, 2023
    加个搜索功能更完美了啊
    catsoul
        6
    catsoul  
       Jan 6, 2023
    不错,关注一个~
    yuancoder
        7
    yuancoder  
       Jan 6, 2023
    跟 hugo 有啥区别
    zhuangzhuang1988
        8
    zhuangzhuang1988  
       Jan 6, 2023
    大侠牛逼啊。
    poltao
        9
    poltao  
       Jan 6, 2023
    兄弟牛的
    berserk
        10
    berserk  
       Jan 6, 2023
    好东西。
    下一步就是想办法让人们用起来了。是你集中提供服务呢,还是用户在自己服务器上用?
    levelworm
        11
    levelworm  
       Jan 6, 2023 via Android
    感觉类似 mkdocs 啊,挺有趣的
    hades97
        12
    hades97  
    OP
       Jan 7, 2023   ❤️ 1
    @BowenYoung 你说的对,我修改一下
    moegui
        13
    moegui  
       Jan 7, 2023
    好东西啊
    xiongsa18
        14
    xiongsa18  
       Jan 7, 2023
    看着不错,mark 一下。
    hellododoo
        15
    hellododoo  
       Jan 7, 2023
    不错,很实用
    dw2693734d
        16
    dw2693734d  
       Jan 7, 2023
    不错
    dw2693734d
        17
    dw2693734d  
       Jan 7, 2023
    图片可以放吗
    hanyuyu
        18
    hanyuyu  
       Jan 7, 2023
    滿漂亮的,推一個
    alafun
        19
    alafun  
       Jan 7, 2023
    Maybe a fork is a better choice.
    linmq
        20
    linmq  
       Jan 7, 2023
    技术跟 Hugo 比较像
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2546 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 63ms · UTC 16:09 · PVG 00:09 · LAX 09:09 · JFK 12:09
    ♥ Do have faith in what you're doing.