History

Update Babel documentation (7.14.8)

Simon Legner committed 5 years ago

Commit b5cfc8c1 parent 35a23f13 files · +12 −4Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +2 −2
  2. lib/docs/filters/babel/clean_html.rb +8 −0
  3. lib/docs/scrapers/babel.rb +2 −2
assets/javascripts/templates/pages/about_tmpl.coffee+2−2
@@ -108,9 +108,9 @@ credits = [ · 107 unmodified lines
108108 'https://raw.githubusercontent.com/caolan/async/master/LICENSE'
109109 ], [
110110 'Babel',
111− '2018 Sebastian McKenzie',
111+ '2014-present Sebastian McKenzie',
112112 'MIT',
113− 'https://raw.githubusercontent.com/babel/website/master/LICENSE'
113+ 'https://raw.githubusercontent.com/babel/babel/master/LICENSE'
114114 ], [
115115 'Backbone.js',
116116 '2010-2019 Jeremy Ashkenas, DocumentCloud',
lib/docs/filters/babel/clean_html.rb+8−0
@@ -15,6 +15,14 @@ module Docs · 14 unmodified lines
1515
1616 css('.docs-prevnext').remove
1717
18+ css('pre > code.hljs').each do |node|
19+ node.parent['data-language'] = node['class'][/language-(\w+)/, 1]
20+ end
21+
22+ css('pre').each do |node|
23+ node.content = node.content
24+ end
25+
1826 doc
1927
2028 end
lib/docs/scrapers/babel.rb+2−2
@@ -25,12 +25,12 @@ module Docs · 24 unmodified lines
2525 ]
2626
2727 options[:attribution] = <<-HTML
28− &copy; 2020 Sebastian McKenzie<br>
28+ &copy; 2014-present Sebastian McKenzie<br>
2929 Licensed under the MIT License.
3030 HTML
3131
3232 version '7' do
33− self.release = '7.12.6'
33+ self.release = '7.14.8'
3434 end
3535
3636 version '6' do