From 3811fb46b3e7997e3228538c64bb8a9e57486c06 Mon Sep 17 00:00:00 2001 From: mpnowacki Date: Sun, 4 Oct 2015 11:34:25 +0200 Subject: [PATCH 1/3] fixed file renaming issues with page_file_dir. This will only work with appropriate changes in gollum-lib --- lib/gollum/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 3fde8bf2..116bc592 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -179,7 +179,7 @@ module Precious halt 500 unless tempfile.is_a? Tempfile # Remove page file dir prefix from upload path if necessary -- committer handles this itself - dir = wiki.per_page_uploads ? params[:upload_dest].match(/^(#{wiki.page_file_dir}\/+)?(.*)/)[2] : 'uploads' + dir = wiki.per_page_uploads ? params[:upload_dest] : ::File.join([wiki.page_file_dir, 'uploads'].compact) ext = ::File.extname(fullname) format = ext.split('.').last || 'txt' filename = ::File.basename(fullname, ext) From 7362fd859b0120ab8d0a499422ab3eb89f52688b Mon Sep 17 00:00:00 2001 From: SkyCrawl Date: Sun, 25 Oct 2015 13:12:36 +0100 Subject: [PATCH 2/3] Fixing the "running" section --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b0d81691..59f246a3 100644 --- a/README.md +++ b/README.md @@ -98,14 +98,17 @@ Simply: 2. Run: `gollum`. 3. Open `http://localhost:4567` in your browser. -If you wish to run from source, simply: - -1. Navigate to your git repository (wiki) via the command line. -2. Run: `bundle exec bin/gollum` -3. Open `http://localhost:4567` in your browser. - This will start up a web server (WEBrick) running Gollum with a web interface, where you can view and edit your wiki. +### Running from source + +1. `git clone https://github.com/gollum/gollum` +2. `cd gollum` +3. `[sudo] bundle install` (may not always be necessary). +4. `bundle exec bin/gollum` + * Like that, gollum assumes the target wiki (git repository) is the project repository itself. If it's not, execute `bundle exec bin/gollum ` instead. +5. Open `http://localhost:4567` in your browser. + ### Rack Gollum can also be ran with any [rack-compatible web server](https://github.com/rack/rack#supported-web-servers). More on that [over here](https://github.com/gollum/gollum/wiki/Gollum-via-Rack). From 90072a93327665da4d54e3b7e17569d2c743af4e Mon Sep 17 00:00:00 2001 From: ngyuki Date: Tue, 25 Nov 2014 23:01:50 +0900 Subject: [PATCH 3/3] Fix position of sidebar in preview --- lib/gollum/app.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/gollum/app.rb b/lib/gollum/app.rb index 3fde8bf2..31022732 100644 --- a/lib/gollum/app.rb +++ b/lib/gollum/app.rb @@ -358,6 +358,7 @@ module Precious @mathjax = wiki.mathjax @h1_title = wiki.h1_title @editable = false + @bar_side = wiki.bar_side @allow_uploads = wiki.allow_uploads mustache :page end