Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c767a0e9f | |||
| f3b0ba49e0 | |||
| 31dfcbaa9e | |||
| 8e11c5f46d | |||
| 70793ff559 | |||
| 6621e71e6c |
+1
-1
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|||||||
s.required_ruby_version = ">= 1.8.7"
|
s.required_ruby_version = ">= 1.8.7"
|
||||||
|
|
||||||
s.name = 'gollum'
|
s.name = 'gollum'
|
||||||
s.version = '2.4.7'
|
s.version = '2.4.10'
|
||||||
s.date = '2012-12-20'
|
s.date = '2012-12-20'
|
||||||
s.rubyforge_project = 'gollum'
|
s.rubyforge_project = 'gollum'
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -28,7 +28,7 @@ require File.expand_path('../gollum/frontend/uri_encode_component', __FILE__)
|
|||||||
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
$KCODE = 'U' if RUBY_VERSION[0,3] == '1.8'
|
||||||
|
|
||||||
module Gollum
|
module Gollum
|
||||||
VERSION = '2.4.7'
|
VERSION = '2.4.10'
|
||||||
|
|
||||||
def self.assets_path
|
def self.assets_path
|
||||||
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
::File.expand_path('gollum/frontend/public', ::File.dirname(__FILE__))
|
||||||
|
|||||||
@@ -88,7 +88,8 @@ module Precious
|
|||||||
end
|
end
|
||||||
|
|
||||||
get '/' do
|
get '/' do
|
||||||
redirect ::File.join(@base_url, 'Home')
|
page_dir = settings.wiki_options[:page_file_dir].to_s
|
||||||
|
redirect clean_url(::File.join(@base_url, page_dir, 'Home'))
|
||||||
end
|
end
|
||||||
|
|
||||||
# path is set to name if path is nil.
|
# path is set to name if path is nil.
|
||||||
@@ -179,6 +180,14 @@ module Precious
|
|||||||
@name = wikip.name.to_url
|
@name = wikip.name.to_url
|
||||||
@path = wikip.path
|
@path = wikip.path
|
||||||
|
|
||||||
|
page_dir = settings.wiki_options[:page_file_dir].to_s
|
||||||
|
unless page_dir.empty?
|
||||||
|
# --page-file-dir docs
|
||||||
|
# /docs/Home should be created in /Home
|
||||||
|
# not /docs/Home because write_page will append /docs
|
||||||
|
@path = @path.sub(page_dir, '/') if @path.start_with? page_dir
|
||||||
|
end
|
||||||
|
|
||||||
page = wikip.page
|
page = wikip.page
|
||||||
if page
|
if page
|
||||||
page_dir = settings.wiki_options[:page_file_dir].to_s
|
page_dir = settings.wiki_options[:page_file_dir].to_s
|
||||||
|
|||||||
@@ -38,7 +38,9 @@
|
|||||||
$.GollumEditor.Placeholder.add($('#gollum-editor-edit-summary input'));
|
$.GollumEditor.Placeholder.add($('#gollum-editor-edit-summary input'));
|
||||||
$('#gollum-editor form[name="gollum-editor"]').submit(function( e ) {
|
$('#gollum-editor form[name="gollum-editor"]').submit(function( e ) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
$.GollumEditor.Placeholder.clearAll();
|
// Do not clear default place holder text
|
||||||
|
// Updated home (markdown)
|
||||||
|
// $.GollumEditor.Placeholder.clearAll();
|
||||||
debug('submitting');
|
debug('submitting');
|
||||||
$(this).unbind('submit');
|
$(this).unbind('submit');
|
||||||
$(this).submit();
|
$(this).submit();
|
||||||
|
|||||||
Reference in New Issue
Block a user