matplotlib.rb 702 B

1234567891011121314151617181920212223242526
  1. module Docs
  2. class Matplotlib < UrlScraper
  3. self.name = 'Matplotlib'
  4. self.type = 'sphinx'
  5. self.root_path = 'index.html'
  6. self.links = {
  7. home: 'http://matplotlib.org/',
  8. code: 'https://github.com/matplotlib/matplotlib'
  9. }
  10. html_filters.push 'matplotlib/entries', 'sphinx/clean_html'
  11. options[:container] = '.body'
  12. options[:skip] = %w(api_changes.html)
  13. options[:attribution] = <<-HTML
  14. &copy; 2012&ndash;2016 Matplotlib Development Team. All rights reserved.<br>
  15. Licensed under the Matplotlib License Agreement.
  16. HTML
  17. version '1.5' do
  18. self.release = '1.5.1'
  19. self.base_url = 'http://matplotlib.org/1.5.1/api/'
  20. end
  21. end
  22. end