History

Update Puppeteer documentation (5.5.0)

Simon Legner committed 5 years ago

Commit 78fb2c81 parent 3e584303 files · +5 −4Browse files

Unified · Split

3 files
  1. assets/javascripts/templates/pages/about_tmpl.coffee +1 −1
  2. lib/docs/filters/puppeteer/clean_html.rb +1 −0
  3. lib/docs/scrapers/puppeteer.rb +3 −3
assets/javascripts/templates/pages/about_tmpl.coffee+1−1
@@ -643,7 +643,7 @@ credits = [ · 642 unmodified lines
643 'https://www.postgresql.org/about/licence/'643 'https://www.postgresql.org/about/licence/'
644 ], [644 ], [
645 'Puppeteer',645 'Puppeteer',
646 '2017 Google Inc',646 '2020 Google Inc',
647 'Apache',647 'Apache',
648 'https://raw.githubusercontent.com/GoogleChrome/puppeteer/master/LICENSE'648 'https://raw.githubusercontent.com/GoogleChrome/puppeteer/master/LICENSE'
649 ], [649 ], [
lib/docs/filters/puppeteer/clean_html.rb+1−0
@@ -8,6 +8,7 @@ module Docs · 7 unmodified lines
8 8
9 # Remove links to previous versions of the reference9 # Remove links to previous versions of the reference
10 at_css('h1 + ul').remove10 at_css('h1 + ul').remove
11 at_css('h1 + ul').remove
11 12
12 # Remove table of contents13 # Remove table of contents
13 at_css('h1 + h5').remove14 at_css('h1 + h5').remove
lib/docs/scrapers/puppeteer.rb+3−3
@@ -1,7 +1,7 @@
1module Docs1module Docs
2 class Puppeteer < Github2 class Puppeteer < Github
3 self.release = '1.20.0'3 self.release = '5.5.0'
4 self.base_url = 'https://github.com/GoogleChrome/puppeteer/blob/v1.20.0/docs/api.md'4 self.base_url = "https://github.com/puppeteer/puppeteer/blob/v#{self.release}/docs/api.md"
5 self.links = {5 self.links = {
6 code: 'https://github.com/GoogleChrome/puppeteer'6 code: 'https://github.com/GoogleChrome/puppeteer'
7 }7 }
@@ -11,7 +11,7 @@ module Docs · 3 unmodified lines
11 options[:container] = '.markdown-body'11 options[:container] = '.markdown-body'
12 12
13 options[:attribution] = <<-HTML13 options[:attribution] = <<-HTML
14 &copy; 2017 Google Inc<br>14 &copy; 2020 Google Inc<br>
15 Licensed under the Apache License 2.0.15 Licensed under the Apache License 2.0.
16 HTML16 HTML
17 17