Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 42 KiB |
@ -0,0 +1,15 @@
|
|||||||
|
#= require views/pages/base
|
||||||
|
|
||||||
|
class app.views.YiiPage extends app.views.BasePage
|
||||||
|
@events:
|
||||||
|
click: 'onClick'
|
||||||
|
|
||||||
|
onClick: (event) ->
|
||||||
|
return unless event.target.classList.contains 'show'
|
||||||
|
$.stopEvent(event)
|
||||||
|
|
||||||
|
source = $ '.code', event.target.parentNode.parentNode
|
||||||
|
isShown = source.style.display is 'block'
|
||||||
|
|
||||||
|
source.style.display = if isShown then 'none' else 'block'
|
||||||
|
event.target.textContent = if isShown then 'show' else 'hide'
|
@ -0,0 +1,24 @@
|
|||||||
|
._yii {
|
||||||
|
h2 { @extend %block-heading; }
|
||||||
|
> h3 { @extend %block-label, %label-blue; }
|
||||||
|
|
||||||
|
.paramNameCol { font-weight: bold; }
|
||||||
|
.signature2 { margin: .4em 0; }
|
||||||
|
.sourceCode { margin-bottom: 1em; }
|
||||||
|
.sourceCode > .code { display: none; }
|
||||||
|
|
||||||
|
.SeeAlso {
|
||||||
|
> h4 {
|
||||||
|
margin-bottom: 1em;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
> ul { margin-top: 0; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.summaryTable td:first-child[rowspan] {
|
||||||
|
border-right: 1px solid #e5e5e5;
|
||||||
|
|
||||||
|
+ td { border-left: 0; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,30 +1,21 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class Yii
|
class Yii
|
||||||
class EntriesFilter < Docs::EntriesFilter
|
class EntriesFilter < Docs::EntriesFilter
|
||||||
|
|
||||||
def get_name
|
def get_name
|
||||||
#class names exist in the <h1> content.
|
at_css('h1').content.strip
|
||||||
name = at_css('h1').content.strip
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_type
|
def get_type
|
||||||
#need to get the table with a class of summaryTable. Then we need the content of the first td in the first tr.
|
css('.summaryTable td').first.content
|
||||||
type = css('table.summaryTable td')[0].content
|
|
||||||
type
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def additional_entries
|
def additional_entries
|
||||||
css('table.summaryTable tr[id]').inject [] do |entries,node|
|
css('.detailHeader').inject [] do |entries, node|
|
||||||
#need to ignore inherited methods and properties
|
name = node.child.content.strip
|
||||||
if (node['class'] != 'inherited' and node.parent().parent()['class'] == "summary docMethod")
|
name.prepend self.name + (node.next_element.content.include?('public static') ? '::' : '->')
|
||||||
#name should be Class.method() id will take you to the link in the summary block.
|
entries << [name, node['id']]
|
||||||
name = slug + "." + node['id'] + "()"
|
|
||||||
entries << [name, node['id']]
|
|
||||||
end
|
|
||||||
entries
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
@ -1,12 +1,15 @@
|
|||||||
module Docs
|
module Docs
|
||||||
class Yii < UrlScraper
|
class Yii < UrlScraper
|
||||||
self.name = 'Yii'
|
|
||||||
self.slug = 'yii'
|
|
||||||
self.type = 'yii'
|
self.type = 'yii'
|
||||||
self.version = '1.1.14'
|
self.version = '1.1.14'
|
||||||
self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
|
self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
|
||||||
|
|
||||||
html_filters.push 'yii/clean_html', 'yii/entries'
|
html_filters.push 'yii/clean_html', 'yii/entries'
|
||||||
|
|
||||||
|
options[:container] = '.grid_9'
|
||||||
|
options[:attribution] = <<-HTML
|
||||||
|
© 2008–2014 by Yii Software LLC<br>
|
||||||
|
Licensed under the three clause BSD license.
|
||||||
|
HTML
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 725 B |
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 1.5 KiB |
@ -0,0 +1 @@
|
|||||||
|
http://www.yiiframework.com/logo/
|