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

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?

  • Git: How to handle git libraries in project
  • Move files & folders in github
  • Pushing to Github impossible
  • Can't push to GitHub error: pack-objects died of signal 13
  • 403 error when pushing to GitHub
  • What is the best practice for dealing with passwords in github?
  • remote: Invalid username or password, fatal: Authentication failed for
  • How can I throw away local changes in my Git repository when pulling a new version from github?
  • github api: How to efficiently find the number of commits for a repository?
  • Delete fork dependency of a GitHub repository
  • The mystery of the missing commit across merges
  • Git p4 merge pull request
  • 2 Solutions collect form web for “How do I generate a static copy of my github project wiki?”

    nowadays, it works with :

    require 'gollum-lib'
    wiki = Gollum::Wiki.new("/mywikirepo")
    wiki.pages.each{|p| puts p.formatted_data }
    
    • 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 }
      
    Git Baby is a git and github fan, let's start git clone.