[devdocsgjs/main: 1723/1867] Update openjdk 15 to 15.0.3 and openjdk 11 to 11.0.11
- From: Andy Holmes <andyholmes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devdocsgjs/main: 1723/1867] Update openjdk 15 to 15.0.3 and openjdk 11 to 11.0.11
- Date: Fri, 19 Nov 2021 23:48:16 +0000 (UTC)
commit d668808fac366d7fb1de67441f1409015179a615
Author: Enoc <brianhernandez222 hotmail com>
Date: Mon Jun 14 01:18:06 2021 -0600
Update openjdk 15 to 15.0.3 and openjdk 11 to 11.0.11
- Remove zero width characters from method signatures
lib/docs/filters/openjdk/clean_html.rb | 1 +
lib/docs/filters/openjdk/clean_html_new.rb | 3 +++
lib/docs/scrapers/openjdk.rb | 4 ++--
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/lib/docs/filters/openjdk/clean_html.rb b/lib/docs/filters/openjdk/clean_html.rb
index 4cd6afe0..5dbbd771 100644
--- a/lib/docs/filters/openjdk/clean_html.rb
+++ b/lib/docs/filters/openjdk/clean_html.rb
@@ -111,6 +111,7 @@ module Docs
css('hr + br', 'p + br', 'div + br', 'hr').remove
css('pre').each do |node|
+ node.content = node.content.sub(/\u200B/, '') # fix zero width space characters
node.content = node.content.strip
node['data-language'] = 'java'
end
diff --git a/lib/docs/filters/openjdk/clean_html_new.rb b/lib/docs/filters/openjdk/clean_html_new.rb
index 1b6d4816..81c90216 100644
--- a/lib/docs/filters/openjdk/clean_html_new.rb
+++ b/lib/docs/filters/openjdk/clean_html_new.rb
@@ -31,6 +31,8 @@ module Docs
# add syntax highlight to each method
css('.member-signature').each do |node|
+ node.content = node.content.sub(/\u200B/, '') # fix zero width space characters
+
node.name = 'pre'
node['class'] = 'lang-java'
node['data-language'] = 'java'
@@ -39,6 +41,7 @@ module Docs
subnode.name = 'code'
end
+
end
doc
diff --git a/lib/docs/scrapers/openjdk.rb b/lib/docs/scrapers/openjdk.rb
index bb453432..411a328c 100644
--- a/lib/docs/scrapers/openjdk.rb
+++ b/lib/docs/scrapers/openjdk.rb
@@ -38,7 +38,7 @@ module Docs
NEWFILTERS = ['openjdk/entries_new', 'openjdk/clean_html_new']
version '15' do
- self.release = '15.0.1'
+ self.release = '15.0.3'
self.root_path = 'index.html'
self.base_url = 'https://docs.oracle.com/en/java/javase/15/docs/api/'
@@ -50,7 +50,7 @@ module Docs
OLDFILTERS = ['openjdk/entries', 'openjdk/clean_html']
version '11' do
- self.release = '11.0.10'
+ self.release = '11.0.11'
self.root_path = 'index.html'
self.base_url = 'https://docs.oracle.com/en/java/javase/11/docs/api/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]