app.templates.newsPage = -> """

Changelog

For the latest news and updates, subscribe to the newsletter or follow @DevDocs.

#{app.templates.newsList app.news}
""" app.templates.newsList = (news) -> result = '' result += newsItem new Date(value[0]), value[1..] for value in news result MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] newsItem = (date, news) -> date = """#{MONTHS[date.getUTCMonth()]} #{date.getUTCDate()}""" result = '' for text, i in news text = text.split "\n" title = """#{text.shift()}""" result += """
#{if i is 0 then date else ''} #{title} #{text.join '
'}
""" result app.news = [ [ 1385424000000, # November 26, 2013 """ New Python documentation """ ], [ 1384819200000, # November 19, 2013 """ New Ruby on Rails documentation """ ], [ 1384560000000, # November 16, 2013 """ New Ruby documentation """ ], [ 1382572800000, # October 24, 2013 """ DevDocs is now open source. """ ], [ 1381276800000, # October 9, 2013 """ DevDocs is now available as a Chrome web app. """ ], [ 1379808000000, # September 22, 2013 """ New PHP documentation """ ], [ 1378425600000, # September 6, 2013 """ New Lo-Dash documentation """, """ On mobile devices you can now search a specific documentation by typing its name and Space. """ ], [ 1377993600000, # September 1, 2013 """ New jQuery UI and jQuery Mobile documentations """ ], [ 1377648000000, # August 28, 2013 """ New smartphone interface Tested on iOS 6+ and Android 4.1+ """ ], [ 1377388800000, # August 25, 2013 """ New Ember.js documentation """ ], [ 1376784000000, # August 18, 2013 """ New CoffeeScript documentation """, """ URL search now automatically opens the first result. """ ], [ 1376352000000, # August 13, 2013 """ New Angular.js documentation """ ], [ 1376179200000, # August 11, 2013 """ New Sass and Less documentations """ ], [ 1375660800000, # August 5, 2013 """ New Node.js documentation """ ], [ 1375488000000, # August 3, 2013 """ Added support for OpenSearch """ ], [ 1375142400000, # July 30, 2013 """ New Backbone.js documentation """ ], [ 1374883200000, # July 27, 2013 """ You can now customize the list of documentations. New docs will be hidden by default, but you'll see a notification when there are new releases. """, """ New HTTP documentation """ ], [ 1373846400000, # July 15, 2013 """ URL search now works with single documentations: devdocs.io/#q=js sort """ ], [ 1373673600000, # July 13, 2013 """ Added syntax highlighting """, """ Added documentation versions """ ], [ 1373500800000, # July 11, 2013 """ New Underscore.js documentation """, """ Improved compatibility with tablets A mobile version is planned as soon as other high priority features have been implemented. """ ], [ 1373414400000, # July 10, 2013 """ You can now search specific documentations. Simply type the documentation's name and press Tab. The name is fuzzy matched so you can use abbreviations like js for JavaScript. """ ], [ 1373241600000, # July 8, 2013 """ Improved search with fuzzy matching and better results For example, searching jqmka now returns jQuery.makeArray(). """, """ DevDocs finally has an icon. """, """ space has replaced alt + space for scrolling down. """ ], [ 1373068800000, # July 6, 2013 """ New DOM and DOM Events documentations DevDocs now includes almost all reference documents available on the Mozilla Developer Network. Big thank you to Mozilla and all the people that contributed to MDN. """, """ Implemented URL search: devdocs.io/#q=sort """ ], [ 1372723200000, # July 2, 2013 """ New JavaScript documentation """ ], [ 1372377600000, # June 28, 2013 """ DevDocs made the front page of Hacker News! Hi everyone — thanks for trying DevDocs. Please bear with me while I fix bugs and scramble to add more docs. This is only v1. There's a lot more to come. """ ], [ 1371513600000, # June 18, 2013 """ Initial release """ ] ]