diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee b/assets/javascripts/templates/pages/about_tmpl.coffee index c23848bd..2fe66d31 100644 --- a/assets/javascripts/templates/pages/about_tmpl.coffee +++ b/assets/javascripts/templates/pages/about_tmpl.coffee @@ -108,9 +108,9 @@ credits = [ 'https://raw.githubusercontent.com/caolan/async/master/LICENSE' ], [ 'Babel', - '2018 Sebastian McKenzie', + '2014-present Sebastian McKenzie', 'MIT', - 'https://raw.githubusercontent.com/babel/website/master/LICENSE' + 'https://raw.githubusercontent.com/babel/babel/master/LICENSE' ], [ 'Backbone.js', '2010-2019 Jeremy Ashkenas, DocumentCloud', diff --git a/lib/docs/filters/babel/clean_html.rb b/lib/docs/filters/babel/clean_html.rb index 492d9014..33cfa56a 100644 --- a/lib/docs/filters/babel/clean_html.rb +++ b/lib/docs/filters/babel/clean_html.rb @@ -15,6 +15,14 @@ module Docs css('.docs-prevnext').remove + css('pre > code.hljs').each do |node| + node.parent['data-language'] = node['class'][/language-(\w+)/, 1] + end + + css('pre').each do |node| + node.content = node.content + end + doc end diff --git a/lib/docs/scrapers/babel.rb b/lib/docs/scrapers/babel.rb index 78d52d78..cbb09f1e 100644 --- a/lib/docs/scrapers/babel.rb +++ b/lib/docs/scrapers/babel.rb @@ -25,12 +25,12 @@ module Docs ] options[:attribution] = <<-HTML - © 2020 Sebastian McKenzie
+ © 2014-present Sebastian McKenzie
Licensed under the MIT License. HTML version '7' do - self.release = '7.12.6' + self.release = '7.14.8' end version '6' do