module Docs
  class Webpack < UrlScraper
    self.name = 'webpack'
    self.type = 'webpack'
    self.release = '1.13'
    self.base_url = 'https://webpack.github.io/docs/'
    self.links = {
      home: 'https://webpack.github.io/',
      code: 'https://github.com/webpack/webpack'
    }

    html_filters.push 'webpack/entries', 'webpack/clean_html', 'title'

    options[:title] = false
    options[:root_title] = 'webpack'

    options[:skip] = %w(list-of-tutorials.html examples.html changelog.html ideas.html roadmap.html)

    options[:attribution] = <<-HTML
      &copy; 2012&ndash;2016 Tobias Koppers<br>
      Licensed under the MIT License.
    HTML
  end
end