yii.rb 1006 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. module Docs
  2. class Yii < UrlScraper
  3. self.type = 'yii'
  4. options[:attribution] = <<-HTML
  5. &copy; 2008&ndash;2017 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.11'
  10. self.base_url = 'http://www.yiiframework.com/doc-2.0/'
  11. self.root_path = 'index.html'
  12. self.links = {
  13. home: 'http://www.yiiframework.com/',
  14. code: 'https://github.com/yiisoft/yii2'
  15. }
  16. html_filters.push 'yii/clean_html_v2', 'yii/entries_v2'
  17. options[:container] = 'div[role=main]'
  18. options[:skip_patterns] = [/\Ayii-apidoc/]
  19. end
  20. version '1.1' do
  21. self.release = '1.1.17'
  22. self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
  23. self.links = {
  24. home: 'http://www.yiiframework.com/',
  25. code: 'https://github.com/yiisoft/yii'
  26. }
  27. html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'
  28. options[:container] = '.grid_9'
  29. end
  30. end
  31. end