Always use HTTPS (#291)

* Make all links to the Sass site use HTTPS

* Force all requests to use HTTPS
This commit is contained in:
Natalie Weizenbaum 2019-03-04 13:04:23 -08:00 committed by Jina Anne
parent 9f3dc12a2c
commit d4eb2ef3f1
8 changed files with 13 additions and 6 deletions

View File

@ -7,4 +7,4 @@ fair place to play.
[The full community guidelines can be found on the Sass website.][link] [The full community guidelines can be found on the Sass website.][link]
[link]: http://sass-lang.com/community-guidelines [link]: https://sass-lang.com/community-guidelines

View File

@ -1,7 +1,7 @@
Contributing to the Sass website Contributing to the Sass website
================================ ================================
**Please read the [Implementation Guide](http://sass-lang.com/implementation)** **Please read the [Implementation Guide](https://sass-lang.com/implementation)**
The Sass website is open source. See a bug or typo? Have an idea? Just do the The Sass website is open source. See a bug or typo? Have an idea? Just do the
following: following:

View File

@ -16,6 +16,7 @@ gem 'puma'
gem 'rack' gem 'rack'
gem 'rack-contrib' gem 'rack-contrib'
gem 'rack-rewrite' gem 'rack-rewrite'
gem 'rack-ssl', '~> 1.4'
gem 'rake' gem 'rake'
gem 'redcarpet', '~> 3.3.3' gem 'redcarpet', '~> 3.3.3'
gem 'semantic', '~> 1.6' gem 'semantic', '~> 1.6'

View File

@ -140,6 +140,8 @@ GEM
rack-livereload (0.3.16) rack-livereload (0.3.16)
rack rack
rack-rewrite (1.5.1) rack-rewrite (1.5.1)
rack-ssl (1.4.1)
rack
rack-test (0.8.3) rack-test (0.8.3)
rack (>= 1.0, < 3) rack (>= 1.0, < 3)
rake (12.3.0) rake (12.3.0)
@ -207,6 +209,7 @@ DEPENDENCIES
rack rack
rack-contrib rack-contrib
rack-rewrite rack-rewrite
rack-ssl (~> 1.4)
rake rake
redcarpet (~> 3.3.3) redcarpet (~> 3.3.3)
semantic (~> 1.6) semantic (~> 1.6)
@ -221,4 +224,4 @@ RUBY VERSION
ruby 2.4.1p111 ruby 2.4.1p111
BUNDLED WITH BUNDLED WITH
1.16.2 1.16.6

View File

@ -3,5 +3,5 @@
The Sass website is open source. See a typo? Have a UX improvement? Check out The Sass website is open source. See a typo? Have a UX improvement? Check out
the [Contributing guide](https://github.com/sass/sass-site/blob/master/CONTRIBUTING.md)! the [Contributing guide](https://github.com/sass/sass-site/blob/master/CONTRIBUTING.md)!
* [Sass website Style Guide](http://sass-lang.com/styleguide) * [Sass website Style Guide](https://sass-lang.com/styleguide)
* [@TeamSassDesign](http://twitter.com/teamsassdesign) * [@TeamSassDesign](http://twitter.com/teamsassdesign)

View File

@ -1,9 +1,12 @@
require "rubygems" require "rubygems"
require "rack/rewrite" require "rack/rewrite"
require "rack/ssl"
require "rack/contrib/not_found" require "rack/contrib/not_found"
require "rack/contrib/try_static" require "rack/contrib/try_static"
use Rack::SSL if ENV["HEROKU"] == 'true'
use Rack::Rewrite do use Rack::Rewrite do
r301 %r{/docs/yardoc/(.*)}, '/documentation/$1' r301 %r{/docs/yardoc/(.*)}, '/documentation/$1'
r301 '/tutorial.html', '/guide' r301 '/tutorial.html', '/guide'

View File

@ -1 +1 @@
url: http://sass-lang.com url: https://sass-lang.com

View File

@ -11,7 +11,7 @@
and&nbsp;numerous&nbsp;contributors. and&nbsp;numerous&nbsp;contributors.
It is available for use and modification under the It is available for use and modification under the
[MIT&nbsp;License](http://sass-lang.com/docs/yardoc/file.MIT-LICENSE.html). [MIT&nbsp;License](https://github.com/sass/dart-sass/blob/master/LICENSE).
%li.contentinfo-tools %li.contentinfo-tools
%ul %ul