pandas.rb 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. module Docs
  2. class Pandas < UrlScraper
  3. self.name = 'pandas'
  4. self.type = 'sphinx'
  5. self.root_path = 'index.html'
  6. self.links = {
  7. home: 'http://pandas.pydata.org/',
  8. code: 'https://github.com/pydata/pandas'
  9. }
  10. html_filters.push 'pandas/entries', 'pandas/clean_html', 'sphinx/clean_html'
  11. # Cannot take only the body, as the sidebar gives info about the type.
  12. options[:container] = '.document'
  13. options[:skip] = %w(internals.html release.html contributing.html whatsnew.html)
  14. options[:attribution] = <<-HTML
  15. &copy; 2011&ndash;2012 Lambda Foundry, Inc. and PyData Development Team<br>
  16. &copy; 2008&ndash;2011 AQR Capital Management, LLC<br>
  17. &copy; 2008&ndash;2014 the pandas development team<br>
  18. Licensed under the 3-clause BSD License.
  19. HTML
  20. version '0.19' do
  21. self.release = '0.19.2'
  22. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  23. end
  24. version '0.18' do
  25. self.release = '0.18.1'
  26. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  27. end
  28. end
  29. end