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. # Returns the URL tag for the latest release of the given implementation.
def release_url(impl) 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) version = impl_version(impl)
repo = repo =
case impl case impl
when :dart; "dart-sass" when :dart; "dart-sass"
when :libsass; "libsass" when :libsass; "libsass"
when :ruby; "sass"
end end
if version if version

View File

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