diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee
index 387a8f52..fbb5b2d2 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -833,9 +833,9 @@ credits = [
'https://raw.githubusercontent.com/sanctuary-js/sanctuary/master/LICENSE'
], [
'Sass',
- '2006-2020 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein',
+ '2022 Google Inc.',
'MIT',
- 'https://raw.githubusercontent.com/sass/sass/stable/MIT-LICENSE'
+ 'https://raw.githubusercontent.com/sass/sass/main/LICENSE'
], [
'Scala',
'2002-2022 EPFL, with contributions from Lightbend',
diff --git a/lib/docs/filters/sass/clean_html.rb b/lib/docs/filters/sass/clean_html.rb
index 9f6c53fe..8f816cb5 100644
--- a/lib/docs/filters/sass/clean_html.rb
+++ b/lib/docs/filters/sass/clean_html.rb
@@ -2,6 +2,7 @@ module Docs
class Sass
class CleanHtmlFilter < Filter
def call
+ @doc = at_css('#main-content')
css('.sl-c-alert').remove
@@ -11,6 +12,8 @@ module Docs
css('.site-footer').remove
+ css('.tsd-breadcrumb').remove
+
# Add id to code blocks
css('pre.signature').each do |node|
@@ -41,10 +44,12 @@ module Docs
### Syntax Highlight ###
css('.highlight.scss', '.highlight.sass').each do |node|
node['data-language'] = 'scss'
+ node.content = node.content.strip
end
css('.highlight.css').each do |node|
node['data-language'] = 'css'
+ node.content = node.content.strip
end
doc
diff --git a/lib/docs/filters/sass/entries.rb b/lib/docs/filters/sass/entries.rb
index 47aa7ac7..35cbfcbf 100644
--- a/lib/docs/filters/sass/entries.rb
+++ b/lib/docs/filters/sass/entries.rb
@@ -3,7 +3,7 @@ module Docs
class EntriesFilter < Docs::EntriesFilter
def get_name
- at_css('#main-content > h1').content
+ at_css('#main-content > h1, #main-content h1').content
end
def get_type
@@ -23,6 +23,8 @@ module Docs
'Command line'
when /modules/
'Modules'
+ when /js-api/
+ 'JavaScript API'
else
'Misc'
end
diff --git a/lib/docs/scrapers/sass.rb b/lib/docs/scrapers/sass.rb
index 84b3c47e..d751bcb0 100644
--- a/lib/docs/scrapers/sass.rb
+++ b/lib/docs/scrapers/sass.rb
@@ -1,7 +1,7 @@
module Docs
class Sass < UrlScraper
self.type = 'yard'
- self.release = '3.6.4'
+ self.release = '1.55.0'
self.base_url = 'https://sass-lang.com/documentation'
self.root_path = 'index.html'
self.links = {
@@ -9,22 +9,21 @@ module Docs
code: 'https://github.com/sass/sass'
}
- html_filters.push 'sass/clean_html', 'sass/entries', 'title'
+ html_filters.push 'sass/entries', 'sass/clean_html'
options[:root_title] = false
- options[:title] = 'Sass Functions'
options[:skip_patterns] = [/breaking-changes/]
# options[:container] = '#main-content'
options[:attribution] = <<-HTML
- © 2006–2020 Hampton Catlin, Nathan Weizenbaum, and Chris Eppstein
+ © 2006–2022 the Sass team, and numerous contributors
Licensed under the MIT License.
HTML
def get_latest_version(opts)
- get_latest_github_release('sass', 'libsass', opts)
+ get_npm_version('sass', opts)
end
end