mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
674 B
24 lines
674 B
module Docs
|
|
class Puppeteer < Github
|
|
self.release = '7.1.0'
|
|
self.base_url = "https://github.com/puppeteer/puppeteer/blob/v#{self.release}/docs/api.md"
|
|
self.links = {
|
|
code: 'https://github.com/puppeteer/puppeteer/'
|
|
}
|
|
|
|
html_filters.push 'puppeteer/entries', 'puppeteer/clean_html'
|
|
|
|
options[:container] = '.markdown-body'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2021 Google Inc<br>
|
|
Licensed under the Apache License 2.0.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
contents = get_github_file_contents('GoogleChrome', 'puppeteer', 'README.md', opts)
|
|
contents.scan(/\/v([0-9.]+)\/docs\/api\.md/)[0][0]
|
|
end
|
|
end
|
|
end
|