mirror of
https://github.com/danog/sass-site.git
synced 2025-01-22 05:41:42 +01:00
Redirect from popular old sass-lang.com URLs.
This commit is contained in:
parent
5a98132c4f
commit
63e56eb2c8
1
Gemfile
1
Gemfile
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user