我如何生成我的github项目wiki的静态副本? [英] How do I generate a static copy of my github project wiki?

查看:275
本文介绍了我如何生成我的github项目wiki的静态副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望从markdown文件目录中生成github项目wiki生成的HTML的本地静态副本。

I'd like to generate a local static copy of the generated HTML of my github project wiki, from the directory of markdown files.

最好的方法是如何做到这一点?

What's the best way of doing that?

推荐答案

时下,它适用于:

nowadays, it works with :

require 'gollum-lib'
wiki = Gollum::Wiki.new("/mywikirepo")
wiki.pages.each{|p| puts p.formatted_data }

这篇关于我如何生成我的github项目wiki的静态副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆