Link to GitHub for Ruby Sass release notes

This commit is contained in:
Natalie Weizenbaum 2018-12-28 15:44:24 -08:00
parent d6455f82cc
commit 7f886f13ee
2 changed files with 5 additions and 3 deletions

View File

@ -246,12 +246,15 @@ module SassHelpers
# Returns the URL tag for the latest release of the given implementation.
def release_url(impl)
if impl == :ruby
return "https://github.com/sass/ruby-sass/blob/stable/doc-src/SASS_CHANGELOG.md"
end
version = impl_version(impl)
repo =
case impl
when :dart; "dart-sass"
when :libsass; "libsass"
when :ruby; "sass"
end
if version

View File

@ -105,8 +105,7 @@
= link_to 'Ruby Sass', '/ruby-sass'
-# Force space between the two links.
 
= link_to impl_version(:ruby) || '???', |
'/documentation/file.SASS_CHANGELOG.html' |
= link_to impl_version(:ruby) || '???', release_url(:ruby)
%li.sl-l-grid__column.sl-l-large-grid__column--auto-size
= link_to 'Implementation Guide', '/implementation'