pandas.rb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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; 2008&ndash;2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team<br>
  16. Licensed under the 3-clause BSD License.
  17. HTML
  18. version '0.22' do
  19. self.release = '0.22.0'
  20. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  21. end
  22. version '0.21' do
  23. self.release = '0.21.0'
  24. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  25. end
  26. version '0.20' do
  27. self.release = '0.20.3'
  28. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  29. end
  30. version '0.19' do
  31. self.release = '0.19.2'
  32. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  33. end
  34. version '0.18' do
  35. self.release = '0.18.1'
  36. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  37. end
  38. end
  39. end