|
|
@@ -1,18 +1,30 @@
|
|
|
module Docs
|
|
|
class Yii < UrlScraper
|
|
|
self.type = 'yii'
|
|
|
- self.release = '2.0.2'
|
|
|
- self.base_url = 'http://www.yiiframework.com/doc-2.0/'
|
|
|
- self.root_path = 'index.html'
|
|
|
-
|
|
|
- html_filters.push 'yii/clean_html', 'yii/entries'
|
|
|
-
|
|
|
- options[:container] = 'div[role=main]'
|
|
|
- options[:skip_patterns] = [/\Ayii-apidoc/]
|
|
|
|
|
|
options[:attribution] = <<-HTML
|
|
|
- © 2008–2015 by Yii Software LLC<br>
|
|
|
+ © 2008–2016 by Yii Software LLC<br>
|
|
|
Licensed under the three clause BSD license.
|
|
|
HTML
|
|
|
+
|
|
|
+ version '2.0' do
|
|
|
+ self.release = '2.0.6'
|
|
|
+ self.base_url = 'http://www.yiiframework.com/doc-2.0/'
|
|
|
+ self.root_path = 'index.html'
|
|
|
+
|
|
|
+ html_filters.push 'yii/clean_html_v2', 'yii/entries_v2'
|
|
|
+
|
|
|
+ options[:container] = 'div[role=main]'
|
|
|
+ options[:skip_patterns] = [/\Ayii-apidoc/]
|
|
|
+ end
|
|
|
+
|
|
|
+ version '1.1' do
|
|
|
+ self.release = '1.1.17'
|
|
|
+ self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
|
|
|
+
|
|
|
+ html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'
|
|
|
+
|
|
|
+ options[:container] = '.grid_9'
|
|
|
+ end
|
|
|
end
|
|
|
end
|