diff --git a/assets/images/docs-2.png b/assets/images/docs-2.png index 2af0f5b9..e13c9042 100644 Binary files a/assets/images/docs-2.png and b/assets/images/docs-2.png differ diff --git a/assets/images/docs-2@2x.png b/assets/images/docs-2@2x.png index c781b248..5ad952c8 100644 Binary files a/assets/images/docs-2@2x.png and b/assets/images/docs-2@2x.png differ diff --git a/assets/javascripts/news.json b/assets/javascripts/news.json index aff770f4..0642e282 100644 --- a/assets/javascripts/news.json +++ b/assets/javascripts/news.json @@ -1,5 +1,8 @@ [ [ + "2018-09-23", + "New documentation: Puppeteer" + ], [ "2018-08-12", "New documentations: Dart and Qt" ], [ diff --git a/assets/stylesheets/global/_icons.scss b/assets/stylesheets/global/_icons.scss index 42e5be23..5ad216ee 100644 --- a/assets/stylesheets/global/_icons.scss +++ b/assets/stylesheets/global/_icons.scss @@ -178,3 +178,4 @@ ._icon-bash:before { background-position: -6rem -3rem; @extend %doc-icon-2; } ._icon-dart:before { background-position: -7rem -3rem; @extend %doc-icon-2; } ._icon-qt:before { background-position: -8rem -3rem; @extend %doc-icon-2; } +._icon-puppeteer:before { background-position: -9rem -3rem; @extend %doc-icon-2; } diff --git a/lib/docs/filters/puppeteer/clean_html.rb b/lib/docs/filters/puppeteer/clean_html.rb index dac3b5ef..d9f6460f 100644 --- a/lib/docs/filters/puppeteer/clean_html.rb +++ b/lib/docs/filters/puppeteer/clean_html.rb @@ -2,18 +2,20 @@ module Docs class Puppeteer class CleanHtmlFilter < Filter def call + at_css('h1').content = 'Puppeteer Documentation' + # None of the elements to remove have classes, so the order of the remove calls is trivial # Remove links to previous versions of the reference - at_css('h5').remove + at_css('h1 + ul').remove # Remove table of contents - at_css('h5').remove - at_css('ul').remove + at_css('h1 + h5').remove + at_css('h1 + ul').remove # Make headers bigger by transforming them into a bigger variant - css('h3').each {|node| node.name = 'h2'} - css('h4').each {|node| node.name = 'h3'} + css('h3').each { |node| node.name = 'h2' } + css('h4').each { |node| node.name = 'h3' } doc end diff --git a/lib/docs/filters/puppeteer/entries.rb b/lib/docs/filters/puppeteer/entries.rb index db80d25d..3b1e1ba6 100644 --- a/lib/docs/filters/puppeteer/entries.rb +++ b/lib/docs/filters/puppeteer/entries.rb @@ -17,7 +17,7 @@ module Docs # Prepend events with the class name if current_name.start_with?('event: ') - current_name = "#{name} event: '#{current_name[/'(.*)'/, 1]}'" + current_name = "#{name} event: #{current_name[/'(.*)'/, 1]}" end # Remove arguments from functions diff --git a/lib/docs/scrapers/puppeteer.rb b/lib/docs/scrapers/puppeteer.rb index 210f6dd3..d83b28d1 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.6.2' - self.base_url = 'https://github.com/GoogleChrome/puppeteer/blob/v1.6.2/docs/api.md' + self.release = '1.8.0' + self.base_url = 'https://github.com/GoogleChrome/puppeteer/blob/v1.8.0/docs/api.md' self.links = { code: 'https://github.com/GoogleChrome/puppeteer' } diff --git a/public/icons/docs-2.pxm b/public/icons/docs-2.pxm index 1d81916e..594ef18e 100644 Binary files a/public/icons/docs-2.pxm and b/public/icons/docs-2.pxm differ diff --git a/public/icons/docs-2@2x.pxm b/public/icons/docs-2@2x.pxm index ca26ef6f..7ffd7e60 100644 Binary files a/public/icons/docs-2@2x.pxm and b/public/icons/docs-2@2x.pxm differ diff --git a/public/icons/docs/puppeteer/16.png b/public/icons/docs/puppeteer/16.png index 558e83c2..1a15e128 100644 Binary files a/public/icons/docs/puppeteer/16.png and b/public/icons/docs/puppeteer/16.png differ diff --git a/public/icons/docs/puppeteer/16@2x.png b/public/icons/docs/puppeteer/16@2x.png index 20581a2c..cf0c0d8b 100644 Binary files a/public/icons/docs/puppeteer/16@2x.png and b/public/icons/docs/puppeteer/16@2x.png differ