How do I generate a static copy of my github project wiki?

一笑奈何 提交于 2019-12-06 11:21:14

问题


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?


回答1:


nowadays, it works with :

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



回答2:


  • 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 }
    


来源:https://stackoverflow.com/questions/13675945/how-do-i-generate-a-static-copy-of-my-github-project-wiki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!