1
0

pandas.rb 875 B

1234567891011121314151617181920212223242526272829
  1. module Docs
  2. class Pandas < UrlScraper
  3. self.name = 'pandas'
  4. self.type = 'sphinx'
  5. self.root_path = 'api.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. # Using the above container, leads to tons of anchors. Only keep the generated/ pages.
  14. options[:only_patterns] = [/\Agenerated\//]
  15. options[:attribution] = <<-HTML
  16. &copy; 2008&ndash;2014, the pandas development team.<br>
  17. Licensed under the BSD license.
  18. HTML
  19. version '0.18' do
  20. self.release = '0.18.1'
  21. self.base_url = "http://pandas.pydata.org/pandas-docs/version/#{self.release}/"
  22. end
  23. end
  24. end