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
108 'https://raw.githubusercontent.com/caolan/async/master/LICENSE'108 'https://raw.githubusercontent.com/caolan/async/master/LICENSE'
109 ], [109 ], [
110 'Babel',110 'Babel',
111 '2018 Sebastian McKenzie',111 '2014-present Sebastian McKenzie',
112 'MIT',112 'MIT',
113 'https://raw.githubusercontent.com/babel/website/master/LICENSE'113 'https://raw.githubusercontent.com/babel/babel/master/LICENSE'
114 ], [114 ], [
115 'Backbone.js',115 'Backbone.js',
116 '2010-2019 Jeremy Ashkenas, DocumentCloud',116 '2010-2019 Jeremy Ashkenas, DocumentCloud',
lib/docs/filters/babel/clean_html.rb+8−0
@@ -15,6 +15,14 @@ module Docs · 14 unmodified lines
15 15
16 css('.docs-prevnext').remove16 css('.docs-prevnext').remove
17 17
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
18 doc26 doc
19 27
20 end28 end
lib/docs/scrapers/babel.rb+2−2
@@ -25,12 +25,12 @@ module Docs · 24 unmodified lines
25 ]25 ]
26 26
27 options[:attribution] = <<-HTML27 options[:attribution] = <<-HTML
28 &copy; 2020 Sebastian McKenzie<br>28 &copy; 2014-present Sebastian McKenzie<br>
29 Licensed under the MIT License.29 Licensed under the MIT License.
30 HTML30 HTML
31 31
32 version '7' do32 version '7' do
33 self.release = '7.12.6'33 self.release = '7.14.8'
34 end34 end
35 35
36 version '6' do36 version '6' do