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
|
||||
class Yii
|
||||
class EntriesFilter < Docs::EntriesFilter
|
||||
|
||||
def get_name
|
||||
#class names exist in the <h1> content.
|
||||
name = at_css('h1').content.strip
|
||||
at_css('h1').content.strip
|
||||
end
|
||||
|
||||
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.
|
||||
type = css('table.summaryTable td')[0].content
|
||||
type
|
||||
css('.summaryTable td').first.content
|
||||
end
|
||||
|
||||
def additional_entries
|
||||
css('table.summaryTable tr[id]').inject [] do |entries,node|
|
||||
#need to ignore inherited methods and properties
|
||||
if (node['class'] != 'inherited' and node.parent().parent()['class'] == "summary docMethod")
|
||||
#name should be Class.method() id will take you to the link in the summary block.
|
||||
name = slug + "." + node['id'] + "()"
|
||||
css('.detailHeader').inject [] do |entries, node|
|
||||
name = node.child.content.strip
|
||||
name.prepend self.name + (node.next_element.content.include?('public static') ? '::' : '->')
|
||||
entries << [name, node['id']]
|
||||
end
|
||||
entries
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
@ -1,12 +1,15 @@
|
||||
module Docs
|
||||
class Yii < UrlScraper
|
||||
self.name = 'Yii'
|
||||
self.slug = 'yii'
|
||||
self.type = 'yii'
|
||||
self.version = '1.1.14'
|
||||
self.base_url = 'http://www.yiiframework.com/doc/api/1.1/'
|
||||
|
||||
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
|
||||
|
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/
|