| 123456789101112131415161718192021222324252627282930313233 |
- module Docs
- class Julia < UrlScraper
- self.links = {
- home: 'https://julialang.org/',
- code: 'https://github.com/JuliaLang/julia'
- }
- options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
- options[:attribution] = <<-HTML
- © 2009–2016 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
- Licensed under the MIT License.
- HTML
- version '0.6' do
- self.release = '0.6.2'
- self.base_url = 'https://docs.julialang.org/en/release-0.6/'
- self.type = 'julia'
- html_filters.push 'julia/entries', 'julia/clean_html'
- options[:container] = '#docs'
- end
- version '0.5' do
- self.release = '0.5.2'
- self.base_url = 'https://docs.julialang.org/en/release-0.5/'
- self.type = 'sphinx_simple'
- html_filters.push 'julia/entries_sphinx', 'julia/clean_html_sphinx', 'sphinx/clean_html'
- end
- end
- end
|