yii.rb 761 B

123456789101112131415161718192021222324252627282930
  1. module Docs
  2. class Yii < UrlScraper
  3. self.type = 'yii'
  4. options[:attribution] = <<-HTML
  5. &copy; 2008&ndash;2016 by Yii Software LLC<br>
  6. Licensed under the three clause BSD license.
  7. HTML
  8. version '2.0' do
  9. self.release = '2.0.10'
  10. self.base_url = 'http://www.yiiframework.com/doc-2.0/'
  11. self.root_path = 'index.html'
  12. html_filters.push 'yii/clean_html_v2', 'yii/entries_v2'
  13. options[:container] = 'div[role=main]'
  14. options[:skip_patterns] = [/\Ayii-apidoc/]
  15. end
  16. version '1.1' do
  17. self.release = '1.1.17'
  18. self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
  19. html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'
  20. options[:container] = '.grid_9'
  21. end
  22. end
  23. end