[devdocsgjs/main: 1193/1867] kotlin: update release 1.4.10
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1193/1867] kotlin: update release 1.4.10
- Date: Fri, 19 Nov 2021 23:47:48 +0000 (UTC)
commit 90031b56f97c7f91476a22ae4b717bbe6f31a0fd
Author: Simon Legner <Simon Legner gmail com>
Date: Tue Nov 17 11:57:56 2020 +0100
kotlin: update release 1.4.10
assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
lib/docs/filters/kotlin/clean_html.rb | 10 +++++++---
lib/docs/scrapers/kotlin.rb | 4 ++--
3 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 771235aa..000ae40e 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -423,7 +423,7 @@ credits = [
'https://raw.githubusercontent.com/koajs/koa/master/LICENSE'
], [
'Kotlin',
- '2010-2019 JetBrains s.r.o.',
+ '2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors',
'Apache',
'https://raw.githubusercontent.com/JetBrains/kotlin/master/license/LICENSE.txt'
], [
diff --git a/lib/docs/filters/kotlin/clean_html.rb b/lib/docs/filters/kotlin/clean_html.rb
index 6343e8ab..0d14c058 100644
--- a/lib/docs/filters/kotlin/clean_html.rb
+++ b/lib/docs/filters/kotlin/clean_html.rb
@@ -15,10 +15,14 @@ module Docs
end
css('pre').each do |node|
- node['data-language'] = 'kotlin' if node.at_css('code[data-lang="text/x-kotlin"]')
- node['data-language'] = 'xml' if node.at_css('code[data-lang="application/xml"]')
- node['data-language'] = 'javascript' if node.at_css('code[data-lang="text/javascript"]')
+ node['data-language'] = 'kotlin' if node.at_css('code.language-kotlin')
+ node['data-language'] = 'groovy' if node.at_css('code.language-groovy')
+ node['data-language'] = 'javascript' if node.at_css('code.language-javascript')
+ node['data-language'] = 'xml' if node.at_css('code.language-xml')
node.content = node.content
+ node.parent.remove_attribute('data-highlight-only')
+ node.parent.remove_attribute('data-lang')
+ node.parent.remove_attribute('theme')
end
end
diff --git a/lib/docs/scrapers/kotlin.rb b/lib/docs/scrapers/kotlin.rb
index 8707aee5..91ca19ff 100644
--- a/lib/docs/scrapers/kotlin.rb
+++ b/lib/docs/scrapers/kotlin.rb
@@ -1,7 +1,7 @@
module Docs
class Kotlin < UrlScraper
self.type = 'kotlin'
- self.release = '1.3.41'
+ self.release = '1.4.10'
self.base_url = 'https://kotlinlang.org/'
self.root_path = 'api/latest/jvm/stdlib/index.html'
self.links = {
@@ -33,7 +33,7 @@ module Docs
}
options[:attribution] = <<-HTML
- © 2010–2019 JetBrains s.r.o.<br>
+ © 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors<br>
Licensed under the Apache License, Version 2.0.
HTML
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]