lib/rapidoc/config.rb in rapidoc-0.0.6 vs lib/rapidoc/config.rb in rapidoc-0.0.7
- old
+ new
@@ -78,11 +78,11 @@
# return the directory where rapidoc generates the doc
def target_dir( f = nil )
if File.exists?( config_file_path )
form_file_name( target_dir_from_config, f )
else
- form_file_name( File.join( ::Rails.root.to_s, 'rapidoc' ), f )
+ form_file_name( File.join( ::Rails.root.to_s, 'public/docs' ), f )
end
end
# returns the directory where rapidoc generates actions (html files)
def actions_dir( f = nil )
@@ -108,12 +108,12 @@
private
def target_dir_from_config
if @@config and @@config.has_key?( "doc_route" )
- File.join(::Rails.root.to_s, @@config['doc_route'] )
+ File.join(::Rails.root.to_s, "public/docs/#{@@config['doc_route']}" )
else
- File.join(::Rails.root.to_s, 'rapidoc' )
+ File.join(::Rails.root.to_s, 'public/docs' )
end
end
def examples_dir_from_config_file
if @@config and @@config.has_key?("examples_route")