Update Ember.js documentation (2.5.0)

pull/393/merge
Thibaut Courouble 9 years ago
parent 2ed9d2f865
commit 05d4b76390

@ -1,11 +0,0 @@
#= require views/pages/base
class app.views.EmberPage extends app.views.BasePage
prepare: ->
for el in @findAllByTag 'pre'
language = if el.classList.contains 'javascript'
'javascript'
else if el.classList.contains 'html'
'markup'
@highlightCode el, language if language
return

@ -6,6 +6,7 @@ class app.views.SimplePage extends app.views.BasePage
@highlightCode el, el.getAttribute('data-language')
return
app.views.EmberPage =
app.views.GoPage =
app.views.MeteorPage =
app.views.RamdaPage =

@ -58,6 +58,7 @@ module Docs
css('.highlight').each do |node|
node.content = node.at_css('.code pre').content
node.name = 'pre'
node['data-language'] = node['class'][/(javascript|js|html)/, 1]
end
end
end

@ -3,7 +3,7 @@ module Docs
self.name = 'Ember.js'
self.slug = 'ember'
self.type = 'ember'
self.release = '2.4.0'
self.release = '2.5.0'
self.base_url = 'http://emberjs.com/api/'
self.links = {
home: 'http://emberjs.com/',

Loading…
Cancel
Save