Update CoffeeScript documentation (1.11.0)

pull/501/head
Thibaut Courouble 8 years ago
parent 4bcd93326e
commit 1a9f3affac

@ -1,7 +0,0 @@
#= require views/pages/base
class app.views.CoffeescriptPage extends app.views.BasePage
prepare: ->
@highlightCode @findAll('.code > pre:first-child'), 'coffeescript'
@highlightCode @findAll('.code > pre:last-child'), 'javascript'
return

@ -13,6 +13,7 @@ app.views.BowerPage =
app.views.CPage = app.views.CPage =
app.views.CakephpPage = app.views.CakephpPage =
app.views.ChaiPage = app.views.ChaiPage =
app.views.CoffeescriptPage =
app.views.CordovaPage = app.views.CordovaPage =
app.views.CrystalPage = app.views.CrystalPage =
app.views.D3Page = app.views.D3Page =

@ -50,6 +50,14 @@ module Docs
node.content = node.content node.content = node.content
end end
css('.code pre:first-child').each do |node|
node['data-language'] = 'coffeescript'
end
css('.code pre:last-child').each do |node|
node['data-language'] = 'javascript'
end
css('tt').each do |node| css('tt').each do |node|
node.name = 'code' node.name = 'code'
end end

@ -41,6 +41,10 @@ module Docs
['Block comments', 'strings', 'Language'], ['Block comments', 'strings', 'Language'],
['###', 'strings', 'Language'], ['###', 'strings', 'Language'],
['Block regexes', 'regexes', 'Language'], ['Block regexes', 'regexes', 'Language'],
['///', 'regexes', 'Language'],
['Modules', 'modules', 'Language'],
['import', 'modules', 'Language'],
['export', 'modules', 'Language'],
['cake command', 'cake', 'Miscellaneous'], ['cake command', 'cake', 'Miscellaneous'],
['Cakefile', 'cake', 'Miscellaneous'], ['Cakefile', 'cake', 'Miscellaneous'],
['Source maps', 'source-maps', 'Miscellaneous'] ['Source maps', 'source-maps', 'Miscellaneous']
@ -68,6 +72,7 @@ module Docs
when '**' then 'pow' when '**' then 'pow'
when '//' then 'floor' when '//' then 'floor'
when '%%' then 'mod' when '%%' then 'mod'
when '@' then 'this'
else name.parameterize else name.parameterize
end end
end end

@ -2,7 +2,7 @@ module Docs
class Coffeescript < UrlScraper class Coffeescript < UrlScraper
self.name = 'CoffeeScript' self.name = 'CoffeeScript'
self.type = 'coffeescript' self.type = 'coffeescript'
self.release = '1.10.0' self.release = '1.11.0'
self.base_url = 'http://coffeescript.org' self.base_url = 'http://coffeescript.org'
self.links = { self.links = {
home: 'http://coffeescript.org', home: 'http://coffeescript.org',

Loading…
Cancel
Save