matplotlib.rb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. module Docs
  2. class Matplotlib < UrlScraper
  3. include MultipleBaseUrls
  4. self.name = 'Matplotlib'
  5. self.type = 'sphinx'
  6. self.root_path = 'index.html'
  7. self.links = {
  8. home: 'http://matplotlib.org/',
  9. code: 'https://github.com/matplotlib/matplotlib'
  10. }
  11. html_filters.push 'matplotlib/entries', 'sphinx/clean_html'
  12. options[:container] = '.body'
  13. options[:skip] = %w(api_changes.html tutorial.html faq.html)
  14. options[:attribution] = <<-HTML
  15. &copy; 2012&ndash;2017 Matplotlib Development Team. All rights reserved.<br>
  16. Licensed under the Matplotlib License Agreement.
  17. HTML
  18. version '2.1' do
  19. self.release = '2.1.0'
  20. self.base_urls = [
  21. "http://matplotlib.org/#{release}/api/",
  22. "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
  23. "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
  24. ]
  25. end
  26. version '2.0' do
  27. self.release = '2.0.2'
  28. self.base_urls = [
  29. "http://matplotlib.org/#{release}/api/",
  30. "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
  31. "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
  32. ]
  33. end
  34. version '1.5' do
  35. self.release = '1.5.3'
  36. self.base_urls = [
  37. "http://matplotlib.org/#{release}/api/",
  38. "http://matplotlib.org/#{release}/mpl_toolkits/mplot3d/",
  39. "http://matplotlib.org/#{release}/mpl_toolkits/axes_grid/api/"
  40. ]
  41. end
  42. end
  43. end