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
      &copy; 2021 Google Inc<br>
      Licensed under the Apache License 2.0.
    HTML

    def get_latest_version(opts)
      get_npm_version('puppeteer', opts)
    end
  end
end