[devdocsgjs/main: 1767/1867] Update Babel documentation (7.14.8)
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1767/1867] Update Babel documentation (7.14.8)
- Date: Fri, 19 Nov 2021 23:48:18 +0000 (UTC)
commit b5cfc8c7ec886dce99ae3e6329e22d51cca2a09a
Author: Simon Legner <Simon Legner gmail com>
Date: Mon Aug 23 20:58:42 2021 +0200
Update Babel documentation (7.14.8)
assets/javascripts/templates/pages/about_tmpl.coffee | 4 ++--
lib/docs/filters/babel/clean_html.rb | 8 ++++++++
lib/docs/scrapers/babel.rb | 4 ++--
3 files changed, 12 insertions(+), 4 deletions(-)
---
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<br>
+ © 2014-present Sebastian McKenzie<br>
Licensed under the MIT License.
HTML
version '7' do
- self.release = '7.12.6'
+ self.release = '7.14.8'
end
version '6' do
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]