How do I generate a static copy of my github proje

2019-04-13 15:04发布

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?

2条回答
家丑人穷心不美
2楼-- · 2019-04-13 15:11

nowadays, it works with :

require 'gollum-lib'
wiki = Gollum::Wiki.new("/mywikirepo")
wiki.pages.each{|p| puts p.formatted_data }
查看更多
做自己的国王
3楼-- · 2019-04-13 15:14
  • clone your repository locally and grab the wiki submodule (see here)
  • install the gollum and redcarpet gems
  • ruby:

    require 'gollum'
    wiki = Gollum::Wiki.new("proj.wiki")
    wiki.pages.each{|p| puts p.formatted_data }
    
查看更多
登录 后发表回答