From Map Kibera
Files that you will need to edit from the crabgrass core
- ~/config/initializers/60-assets.rb
- ~/app/stylesheets/ui_base/_locations.sass
- ~/config/initializers/compass.rb
Customizations to 60-assets.rb
GM_COMMAND = `where gm`.chomp unless defined? GM_COMMAND
PYTHON_COMMAND = `where python`.chomp unless defined? PYTHON_COMMAND
FFMPEG_COMMAND = `where ffmpeg`.chomp unless defined? FFMPEG_COMMAND
INKSCAPE_COMMAND = `where inkscape`.chomp unless defined? INKSCAPE_COMMAND
GPG_COMMAND = `where gpg`.chomp unless defined? GPG_COMMAND
OPENOFFICE = `where openoffice`.chomp.any || `where openoffice.org`.chomp.any
if OPENOFFICE
OPENOFFICE_DAEMON_PORT = 8100
OPENOFFICE_COMMAND = "#{RAILS_ROOT}/lib/od_converter.py"
OPENOFFICE_DAEMON_COMMAND = '%s -headless -accept="socket,port=%s;urp;"' % [OPENOFFICE, OPENOFFICE_DAEMON_PORT]
else
OPENOFFICE_COMMAND = nil
end
Customizations for _locations.sass
#city_results_box
position: absolute
top: 0px
left: 0px
padding: 1em
width: 25em
border: 1px solid #666
background-color: #FFFFAA
color: #000
z-index: 100
Customizations for compass.rb
require 'compass'
# If you have any compass plugins, require them here.
Compass.add_project_configuration(File.join(RAILS_ROOT, "config", "compass.config"))
Compass.configuration.environment = RAILS_ENV.to_sym
Compass.configure_sass_plugin!