julia.rb 915 B

123456789101112131415161718192021222324252627282930313233
  1. module Docs
  2. class Julia < UrlScraper
  3. self.links = {
  4. home: 'https://julialang.org/',
  5. code: 'https://github.com/JuliaLang/julia'
  6. }
  7. options[:only_patterns] = [/\Amanual\//, /\Astdlib\//]
  8. options[:attribution] = <<-HTML
  9. &copy; 2009&ndash;2016 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and other contributors<br>
  10. Licensed under the MIT License.
  11. HTML
  12. version '0.6' do
  13. self.release = '0.6.2'
  14. self.base_url = 'https://docs.julialang.org/en/release-0.6/'
  15. self.type = 'julia'
  16. html_filters.push 'julia/entries', 'julia/clean_html'
  17. options[:container] = '#docs'
  18. end
  19. version '0.5' do
  20. self.release = '0.5.2'
  21. self.base_url = 'https://docs.julialang.org/en/release-0.5/'
  22. self.type = 'sphinx_simple'
  23. html_filters.push 'julia/entries_sphinx', 'julia/clean_html_sphinx', 'sphinx/clean_html'
  24. end
  25. end
  26. end