r.rb 763 B

12345678910111213141516171819202122232425262728293031
  1. module Docs
  2. class R < FileScraper
  3. self.name = 'R'
  4. self.slug = 'r'
  5. self.type = 'simple'
  6. self.release = '4.1.0'
  7. self.links = {
  8. home: 'https://www.r-project.org/',
  9. code: 'https://svn.r-project.org/R/'
  10. }
  11. self.root_path = 'doc/html/packages.html'
  12. html_filters.push 'r/entries', 'r/clean_html'
  13. options[:skip_links] = false
  14. options[:attribution] = <<-HTML
  15. Copyright (&copy;) 1999–2012 R Foundation for Statistical Computing.<br>
  16. Licensed under the <a href="https://www.gnu.org/copyleft/gpl.html">GNU General Public License</a>.
  17. HTML
  18. # Never want those
  19. options[:skip] = %w(
  20. doc/html/packages-head-utf8.html
  21. doc/html/SearchOn.html
  22. doc/html/Search.html
  23. )
  24. end
  25. end