[devdocsgjs/main: 1452/1867] Update Puppeteer documentation (5.5.0)




commit 78fb2c812add9a21bc2ec3714deb8f063884c451
Author: Simon Legner <Simon Legner gmail com>
Date:   Sun Jan 3 10:19:30 2021 +0100

    Update Puppeteer documentation (5.5.0)

 assets/javascripts/templates/pages/about_tmpl.coffee | 2 +-
 lib/docs/filters/puppeteer/clean_html.rb             | 1 +
 lib/docs/scrapers/puppeteer.rb                       | 6 +++---
 3 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/assets/javascripts/templates/pages/about_tmpl.coffee 
b/assets/javascripts/templates/pages/about_tmpl.coffee
index 985cfe8e..0cb6995b 100644
--- a/assets/javascripts/templates/pages/about_tmpl.coffee
+++ b/assets/javascripts/templates/pages/about_tmpl.coffee
@@ -643,7 +643,7 @@ credits = [
     'https://www.postgresql.org/about/licence/'
   ], [
     'Puppeteer',
-    '2017 Google Inc',
+    '2020 Google Inc',
     'Apache',
     'https://raw.githubusercontent.com/GoogleChrome/puppeteer/master/LICENSE'
   ], [
diff --git a/lib/docs/filters/puppeteer/clean_html.rb b/lib/docs/filters/puppeteer/clean_html.rb
index d9f6460f..e6346ae0 100644
--- a/lib/docs/filters/puppeteer/clean_html.rb
+++ b/lib/docs/filters/puppeteer/clean_html.rb
@@ -8,6 +8,7 @@ module Docs
 
         # Remove links to previous versions of the reference
         at_css('h1 + ul').remove
+        at_css('h1 + ul').remove
 
         # Remove table of contents
         at_css('h1 + h5').remove
diff --git a/lib/docs/scrapers/puppeteer.rb b/lib/docs/scrapers/puppeteer.rb
index 5b64330c..460ccd0f 100644
--- a/lib/docs/scrapers/puppeteer.rb
+++ b/lib/docs/scrapers/puppeteer.rb
@@ -1,7 +1,7 @@
 module Docs
   class Puppeteer < Github
-    self.release = '1.20.0'
-    self.base_url = 'https://github.com/GoogleChrome/puppeteer/blob/v1.20.0/docs/api.md'
+    self.release = '5.5.0'
+    self.base_url = "https://github.com/puppeteer/puppeteer/blob/v#{self.release}/docs/api.md";
     self.links = {
       code: 'https://github.com/GoogleChrome/puppeteer'
     }
@@ -11,7 +11,7 @@ module Docs
     options[:container] = '.markdown-body'
 
     options[:attribution] = <<-HTML
-      &copy; 2017 Google Inc<br>
+      &copy; 2020 Google Inc<br>
       Licensed under the Apache License 2.0.
     HTML
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]