Skip to content

Instantly share code, notes, and snippets.

@t-cyrill
Created May 11, 2018 04:50
Show Gist options
  • Save t-cyrill/86c79ccb45e6085c3b8a8a1a18d88975 to your computer and use it in GitHub Desktop.
Save t-cyrill/86c79ccb45e6085c3b8a8a1a18d88975 to your computer and use it in GitHub Desktop.
Gollum
require 'rubygems'
require 'gollum/app'
gollum_path = File.expand_path("#{__dir__}/wiki/") # CHANGE THIS TO POINT TO YOUR OWN WIKI REPO
wiki_options = {:universal_toc => true}
Precious::App.set(:gollum_path, gollum_path)
Precious::App.set(:default_markup, :markdown) # set your favorite markup language
Precious::App.set(:wiki_options, wiki_options)
# frozen_string_literal: true
source "https://rubygems.org"
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
gem 'gollum'
bundle exec gollum -c config.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment