Redirect from popular old sass-lang.com URLs.

This commit is contained in:
Nathan Weizenbaum 2013-10-12 17:14:31 -04:00
parent 5a98132c4f
commit 63e56eb2c8
3 changed files with 10 additions and 0 deletions

View File

@ -14,6 +14,7 @@ gem "susy", "2.0.0.alpha.4"
gem "breakpoint"
gem "typogruby"
gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
gem 'rack-rewrite'
platforms :mri_18 do
gem "ruby18_source_location"
end

View File

@ -81,6 +81,7 @@ GEM
rack (1.5.2)
rack-livereload (0.3.15)
rack
rack-rewrite (1.4.01)
rack-test (0.6.2)
rack (>= 1.0)
rake (10.1.0)
@ -127,6 +128,7 @@ DEPENDENCIES
middleman-favicon-maker
middleman-livereload
middleman-syntax
rack-rewrite
rake
redcarpet
ruby18_source_location

View File

@ -2,6 +2,8 @@ require "builder"
require 'susy'
require 'breakpoint'
require 'middleman-syntax'
require 'rack/rewrite'
# TODO: Make this work
# require "kss"
# require 'typogruby'
@ -62,6 +64,11 @@ end
page "/documentation/*", :directory_index => false
use Rack::Rewrite do
r301 %r{/docs/yardoc/(.*)}, '/documentation/$1'
r301 %r{/tutorial\.html}, '/guide'
r301 %r{/download\.html}, '/install'
end
configure :build do