module Docs
  class Julia < UrlScraper
    self.type = 'sphinx_simple'
    self.release = '0.5.2'
    self.base_url = 'https://docs.julialang.org/en/stable/'
    self.links = {
      home: 'https://julialang.org/',
      code: 'https://github.com/JuliaLang/julia'
    }

    html_filters.push 'julia/entries', 'julia/clean_html', 'sphinx/clean_html'

    options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]

    options[:attribution] = <<-HTML
      &copy; 2009&ndash;2016 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
      Licensed under the MIT License.
    HTML
  end
end
