-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
/
Copy pathyii.rb
executable file
·41 lines (33 loc) · 1.05 KB
/
yii.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module Docs
class Yii < UrlScraper
self.type = 'yii'
options[:attribution] = <<-HTML
© 2008–2024 by Yii Software LLC<br>
Licensed under the three clause BSD license.
HTML
version '2.0' do
self.release = '2.0.50'
self.base_url = 'https://www.yiiframework.com/doc/api/2.0'
self.links = {
home: 'http://www.yiiframework.com/',
code: 'https://github.com/yiisoft/yii2'
}
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.19'
self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
self.links = {
home: 'http://www.yiiframework.com/',
code: 'https://github.com/yiisoft/yii'
}
html_filters.push 'yii/clean_html_v1', 'yii/entries_v1'
options[:container] = '.grid_9'
end
def get_latest_version(opts)
get_latest_github_release('yiisoft', 'yii2', opts)
end
end
end