Sha256: 3df5a56f5a5c8a88cb15fbb445558b22b3072b8651a78cda65fd52caec356e49
Contents?: true
Size: 762 Bytes
Versions: 4
Compression:
Stored size: 762 Bytes
Contents
require 'socket' layout 'layout.html.erb' ignore /css\// ignore /js\// ignore /.+.md/ ignore /Gemfile.*/ ignore /Procfile/ ignore /compile.rb/ helpers do def asset_path if Socket.gethostname == "foundation" "http://foundation4.zurb.com/docs/assets" else "http://#{Socket.ip_address_list.detect{|intf| intf.ipv4_private?}.getnameinfo[0]}:4001/assets" end end def code_example(code, lang=:ruby) "<div class='#{lang}'>" + CodeRay.scan(code, lang).div(:css => :class) + "</div>" end def foundation_home_path '/' end def features_path '/grid.php' end def add_ons_path '/templates.php' end def case_studies_path '/case-jacquelinewest.php' end def docs_path '/docs/' end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
zurb-foundation-4.0.2 | docs/controller.rb |
zurb-foundation-4.0.1 | docs/controller.rb |
zurb-foundation-4.0.0 | docs/controller.rb |
zurb-foundation-4.0.0.rc1 | docs/controller.rb |